public Command(string service, string method, bool callback, Dictionary <string, object> dic) { this.args = dic == null ? null : Json.Serialize(dic); this.service = service; this.method = method; this.callback = callback; this.callbackId = this.callback ? TDSUUID.UUID():null; }
public Builder Callback(bool callback) { this.callback = callback; this.callbackId = this.callback ? TDSUUID.UUID():null; return(this); }