Handle a Command Result

Print Friendly, PDF & Email

◷ Reading Time: 1 minute

C# / .Net

public class CommandResult
    {
        public string ErrorMessage { get; set; }
        public bool IsError { get; set; }
        public int MessageId { get; set; }
        public object Result { get; set; }
    }

Result property of CommandResult can be a type of ResourceAddress

 public class ResourceAddress
    {
        public string Uid { get; set; }
        public long? Revision { get; set; }
    }

JSON / Javascript

Data {
      errorMessage (string),
      messageId (string), 
      isError (Boolean),
      result (Result),
  }
 
  Result {
     uid (string)
     revision (long)  
  }
Updated on August 9, 2019

Was this article helpful?

Related Articles