/// <summary>
 /// Create api model from service model
 /// </summary>
 /// <param name="model"></param>
 public ModelUploadStartResponseApiModel(ModelUploadStartResultModel model)
 {
     if (model == null)
     {
         throw new ArgumentNullException(nameof(model));
     }
     BlobName        = model.BlobName;
     ContentEncoding = model.ContentEncoding;
     TimeStamp       = model.TimeStamp;
 }
Пример #2
0
 /// <summary>
 /// Create api model from service model
 /// </summary>
 /// <param name="model"></param>
 public static ModelUploadStartResponseApiModel ToApiModel(
     this ModelUploadStartResultModel model)
 {
     if (model == null)
     {
         return(null);
     }
     return(new ModelUploadStartResponseApiModel {
         BlobName = model.BlobName,
         ContentEncoding = model.ContentEncoding,
         TimeStamp = model.TimeStamp
     });
 }