protected MovilizerParticipant CreateParticipant(string uname, string deviceAddress)
        {
            MovilizerParticipant participant = new MovilizerParticipant();

            participant.deviceAddress  = deviceAddress;
            participant.name           = uname;
            participant.participantKey = uname;

            return(participant);
        }
        public void EnqueueMovelet(MovilizerMovelet movelet, string uname, string phone)
        {
            // create a movelet set
            MovilizerMoveletSet moveletSet = new MovilizerMoveletSet();

            moveletSet.movelet = new MovilizerMovelet[] { movelet };

            // add a participant
            MovilizerParticipant participant = this.CreateParticipant(uname, phone);

            moveletSet.participant = new MovilizerParticipant[] { participant };

            _outQueue.Enqueue(moveletSet);
        }
        protected MovilizerMoveletAssignment CreateMoveletAssignment(string moveletKey, string moveletKeyExt, string uname, string phone)
        {
            MovilizerMoveletAssignment assignment = new MovilizerMoveletAssignment();

            assignment.moveletKey = moveletKey;

            if (moveletKeyExt != null)
            {
                assignment.moveletKeyExtension = moveletKeyExt;
            }
            else
            {
                assignment.ignoreExtensionKey = true;
            }

            MovilizerParticipant participant = CreateParticipant(uname, phone);

            assignment.participant = new MovilizerParticipant[] { participant };

            return(assignment);
        }
        protected MovilizerParticipant CreateParticipant(string uname, string deviceAddress)
        {
            MovilizerParticipant participant = new MovilizerParticipant();

            participant.deviceAddress = deviceAddress;
            participant.name = uname;
            participant.participantKey = uname;

            return participant;
        }