ToMovelet() public method

public ToMovelet ( ) : MovilizerMovelet
return MovilizerMovelet
Esempio n. 1
0
        public void SendMoveletTo(MoveletTemplate mTemplate, string[] unames, string[] phones)
        {           
            string debugOutput = Configuration.GetDebugOutputPath();
            if (!String.IsNullOrEmpty(debugOutput))
            {
                // backup the movelet as xml              
                mTemplate.SerializeToFile(debugOutput);
            }

            MovilizerMovelet movelet = mTemplate.ToMovelet();
            _service.EnqueueMoveletDeletion(movelet.moveletKey, movelet.moveletKeyExtension);

            _service.EnqueueMovelet(movelet, unames[0], phones[0]);
            for (int i = 1; i < unames.Length; ++i)
            {
                _service.EnqueueMoveletAssignment(movelet.moveletKey, movelet.moveletKeyExtension, unames[i], phones[i]);
            }            
        }