Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the ReadOperationResult class.
 /// </summary>
 /// <param name="status">Status of the read operation. Possible values
 /// include: 'notStarted', 'running', 'failed', 'succeeded'</param>
 /// <param name="createdDateTime">Get UTC date time the batch operation
 /// was submitted.</param>
 /// <param name="lastUpdatedDateTime">Get last updated UTC date time of
 /// this batch operation.</param>
 /// <param name="analyzeResult">Analyze batch operation result.</param>
 public ReadOperationResult(OperationStatusCodes status = default(OperationStatusCodes), string createdDateTime = default(string), string lastUpdatedDateTime = default(string), AnalyzeResults analyzeResult = default(AnalyzeResults))
 {
     Status              = status;
     CreatedDateTime     = createdDateTime;
     LastUpdatedDateTime = lastUpdatedDateTime;
     AnalyzeResult       = analyzeResult;
     CustomInit();
 }
Esempio n. 2
0
        internal static string ToSerializedValue(this OperationStatusCodes value)
        {
            switch (value)
            {
            case OperationStatusCodes.NotStarted:
                return("notStarted");

            case OperationStatusCodes.Running:
                return("running");

            case OperationStatusCodes.Failed:
                return("failed");

            case OperationStatusCodes.Succeeded:
                return("succeeded");
            }
            return(null);
        }