diff --git a/Source/Zencoder/CreateJobRequest.cs b/Source/Zencoder/CreateJobRequest.cs index 9e9a4f3..3af786b 100644 --- a/Source/Zencoder/CreateJobRequest.cs +++ b/Source/Zencoder/CreateJobRequest.cs @@ -70,6 +70,13 @@ public CreateJobRequest(string apiKey, Uri baseUrl) [JsonProperty("region", DefaultValueHandling = DefaultValueHandling.Ignore, NullValueHandling = NullValueHandling.Ignore)] public string Region { get; set; } + /// + /// Gets or sets the grouping to use when processing the job. + /// Defaults to "us". + /// + [JsonProperty("grouping", DefaultValueHandling = DefaultValueHandling.Ignore, NullValueHandling = NullValueHandling.Ignore)] + public string Grouping { get; set; } + /// /// Gets or sets a value indicating whether test mode is enabled for the job. /// diff --git a/Source/Zencoder/Zencoder.cs b/Source/Zencoder/Zencoder.cs index 62ef3ea..ff9ed27 100644 --- a/Source/Zencoder/Zencoder.cs +++ b/Source/Zencoder/Zencoder.cs @@ -297,6 +297,32 @@ public void CreateJob(string input, IEnumerable outputs, int? downloadCo request.WithOutputs(outputs).GetResponseAsync(callback); } + /// + /// A blocking create job request/response cycle. + /// + /// The URL of the input file. + /// The output definition collection. + /// The number of download connections to use when fetching the input file. + /// The region to perform the job in. + /// The grouping to use with reporting. + /// A value indicating whether to use test mode. + /// A value indicating whether to mock the response rather than actually creating a job. + /// The call response. + public void CreateJob(string input, IEnumerable outputs, int? downloadConnections, string region, string grouping, bool? test, bool? mock, Action callback) + { + CreateJobRequest request = new CreateJobRequest(this) + { + DownloadConnections = downloadConnections, + Input = input, + Mock = mock, + Region = region, + Test = test, + Grouping = grouping + }; + + request.WithOutputs(outputs).GetResponseAsync(callback); + } + /// /// A blocking delete job request/response cycle. ///