示例#1
0
        public MoveletSetTemplate()
        {
            _moveletSet = new MovilizerMoveletSet();

            // init movelet array
            _movelets = new List <MoveletTemplate>();
        }
        public MoveletSetTemplate()
        {
            _moveletSet = new MovilizerMoveletSet();

            // init movelet array
            _movelets = new List<MoveletTemplate>();
        }
        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);
        }
        public void EnqueueMoveletSet(MovilizerMoveletSet moveletSet, string[] unames, string[] phones)
        {
            // add participants
            List <MovilizerParticipant> participants = new List <MovilizerParticipant>();

            for (int i = 0; i < unames.Length; ++i)
            {
                participants.Add(this.CreateParticipant(unames[i], phones[i]));
            }

            moveletSet.participant = participants.ToArray();

            _outQueue.Enqueue(moveletSet);
        }
示例#5
0
        public void SendMoveletSetTo(MoveletSetTemplate msTemplate, string[] unames, string[] phones)
        {
            string debugOutput = Configuration.GetDebugOutputPath();

            if (!String.IsNullOrEmpty(debugOutput))
            {
                // backup the movelets as xml
                msTemplate.SerializeToFile(debugOutput);
            }

            MovilizerMoveletSet moveletSet = msTemplate.ToMoveletSet();

            foreach (MovilizerMovelet movelet in moveletSet.movelet)
            {
                _service.EnqueueMoveletDeletion(movelet.moveletKey, movelet.moveletKeyExtension);
            }

            _service.EnqueueMoveletSet(moveletSet, unames, phones);
        }
 public void EnqueueMoveletSet(MovilizerMoveletSet moveletSet)
 {
     _outQueue.Enqueue(moveletSet);
 }
 public void EnqueueMoveletSet(MovilizerMoveletSet moveletSet, string uname, string phone)
 {
     // add a single participant
     EnqueueMoveletSet(moveletSet, new string[] { uname }, new string[] { phone });
 }
        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);
        }
 public void EnqueueMoveletSet(MovilizerMoveletSet moveletSet)
 {
     _outQueue.Enqueue(moveletSet);
 }
        public void EnqueueMoveletSet(MovilizerMoveletSet moveletSet, string[] unames, string[] phones)
        {
            // add participants
            List<MovilizerParticipant> participants = new List<MovilizerParticipant>();
            for (int i = 0; i < unames.Length; ++i)
            {
                participants.Add(this.CreateParticipant(unames[i], phones[i]));
            }

            moveletSet.participant = participants.ToArray();

            _outQueue.Enqueue(moveletSet);
        }
 public void EnqueueMoveletSet(MovilizerMoveletSet moveletSet, string uname, string phone)
 {
     // add a single participant
     EnqueueMoveletSet(moveletSet, new string[] { uname }, new string[] { phone });
 }