Ejemplo n.º 1
0
 public void Set(BcmState bNew)
 {
     Profile.BcmID = bNew.Profile.BcmID;
     Profile.Name  = bNew.Profile.Name;
     Profile.Type  = bNew.Profile.Type;
     ServiceState  = bNew.ServiceState;
     CallState     = bNew.CallState;
     LoginState    = bNew.LoginState;
     Sticky        = bNew.Sticky;
 }
Ejemplo n.º 2
0
 ///////////////////////////////////////////////////////////////
 // SetPresence
 // - Methods for setting the presence state for users
 public bool SetPresence(ObiUser usr, BcmServiceState nServiceState)
 {
     try
     {
         PresenceType pt = new PresenceType();
         pt.CallState       = 0;
         pt.EndTime         = DateTime.MaxValue;
         pt.ServiceState    = (UserServiceState)nServiceState;
         pt.PresenceProfile = "";
         m_PSI.SetUserPresence(m_PSI_Session, usr.UserId, pt);
         m_PL.Bcm_PresenceUpdated(usr);
         return(true);
     }
     catch (Exception e)
     {
         m_log.Log("Exception in BCM_Control::SetPresence: " + e);
     }
     return(false);
 }