Example #1
0
 protected AVIMCommand(string cmd              = null,
                       string op               = null,
                       string appId            = null,
                       string peerId           = null,
                       AVIMSignature signature = null,
                       IDictionary <string, object> arguments = null)
 {
     this.cmd       = cmd;
     this.op        = op;
     this.arguments = arguments == null ? new Dictionary <string, object>() : arguments;
     this.peerId    = peerId;
     this.signature = signature;
 }
 protected AVIMCommand(string cmd              = null,
                       string op               = null,
                       string appId            = null,
                       string peerId           = null,
                       AVIMSignature signature = null,
                       IDictionary <string, object> arguments = null)
 {
     this.cmd       = cmd;
     this.op        = op;
     this.arguments = arguments == null ? new Dictionary <string, object>() : null;
     this.peerId    = peerId;
     this.appId     = appId == null ? AVClient.CurrentConfiguration.ApplicationId : appId;
     this.signature = signature;
 }
 protected AVIMCommand(string cmd = null,
     string op = null,
     string appId = null,
     string peerId = null,
     AVIMSignature signature = null,
     IDictionary<string, object> arguments = null)
 {
     this.cmd = cmd;
     this.op = op;
     this.arguments = arguments == null?new Dictionary<string, object>():null;
     this.peerId = peerId;
     this.appId = appId;
     this.signature = signature;
 }
Example #4
0
        protected AVIMCommand(AVIMCommand source,
                              string cmd    = null,
                              string op     = null,
                              string appId  = null,
                              string peerId = null,
                              IDictionary <string, object> arguments = null,
                              AVIMSignature signature = null)
        {
            if (source == null)
            {
                throw new ArgumentNullException("source", "Source can not be null");
            }
            this.cmd       = source.cmd;
            this.op        = source.op;
            this.arguments = source.arguments;
            this.peerId    = source.peerId;
            this.appId     = source.appId;
            this.signature = source.signature;

            if (cmd != null)
            {
                this.cmd = cmd;
            }
            if (op != null)
            {
                this.op = op;
            }
            if (arguments != null)
            {
                this.arguments = arguments;
            }
            if (peerId != null)
            {
                this.peerId = peerId;
            }
            if (appId != null)
            {
                this.appId = appId;
            }
            if (signature != null)
            {
                this.signature = signature;
            }
        }
        protected AVIMCommand(AVIMCommand source,
            string cmd = null,
            string op = null,
            string appId = null,
            string peerId = null,
            IDictionary<string, object> arguments = null,
            AVIMSignature signature = null)
        {
            if (source == null)
            {
                throw new ArgumentNullException("source");
            }
            this.cmd = source.cmd;
            this.op = source.op;
            this.arguments = source.arguments;
            this.peerId = source.peerId;
            this.appId = source.appId;
            this.signature = source.signature;

            if (cmd != null)
            {
                this.cmd = cmd;
            }
            if (op != null)
            {
                this.op = op;
            }
            if (arguments != null)
            {
                this.arguments = arguments;
            }
            if (peerId != null)
            {
                this.peerId = peerId;
            }
            if (appId != null)
            {
                this.appId = appId;
            }
            if (signature != null)
            {
                this.signature = signature;
            }
        }