public static string KisiAdiOlustur(IRTCBuddy2 kisi) { RTC_PRESENCE_STATUS bulunmaDurumu = kisi.Status; // kiþinin durumunu al string isim = Yardim.KisiAdiAl(kisi); string gorunumDurumu = Yardim.GorunumDurumuOlustur(bulunmaDurumu); // isim ve duruma göre kiþi string i oluþtur if (isim == null || isim.Length == 0) { return(null); } return(isim + gorunumDurumu); }
public static string BuildBuddyDisplayName(IRTCBuddy2 buddy2) { Trace.WriteLine("Entering RTCHelp.BuildBuddyDisplayName"); RTC_PRESENCE_STATUS presenceStatus = buddy2.Status; string name = RTCHelp.GetBuddyName(buddy2); if (name == null || name.Length == 0) { Trace.WriteLine("NULL Buddy Name"); return(null); } return(RTCHelp.BuildDisplayName(name, presenceStatus)); }
public static string GorunumDurumuOlustur(RTC_PRESENCE_STATUS bulunmaDurumu) { StringBuilder sbGorunenAd = new StringBuilder(); switch (bulunmaDurumu) { case RTC_PRESENCE_STATUS.RTCXS_PRESENCE_ONLINE: sbGorunenAd.Append(" (Çevrimiçi)"); imgIndex = 1; break; case RTC_PRESENCE_STATUS.RTCXS_PRESENCE_BUSY: sbGorunenAd.Append(" (Meþgul)"); imgIndex = 2; break; case RTC_PRESENCE_STATUS.RTCXS_PRESENCE_BE_RIGHT_BACK: sbGorunenAd.Append(" (Hemen dönecek)"); imgIndex = 3; break; case RTC_PRESENCE_STATUS.RTCXS_PRESENCE_AWAY: sbGorunenAd.Append(" (Dýþarýda)"); imgIndex = 4; break; case RTC_PRESENCE_STATUS.RTCXS_PRESENCE_ON_THE_PHONE: sbGorunenAd.Append(" (Telefonda)"); imgIndex = 5; break; case RTC_PRESENCE_STATUS.RTCXS_PRESENCE_OUT_TO_LUNCH: sbGorunenAd.Append(" (Öðle yemeðinde)"); imgIndex = 6; break; case RTC_PRESENCE_STATUS.RTCXS_PRESENCE_OFFLINE: sbGorunenAd.Append(" (Çevrimdýþý)"); imgIndex = 7; break; default: break; } return(sbGorunenAd.ToString()); }
public static string BuildDisplayName(string entity, RTC_PRESENCE_STATUS presenceStatus) { Trace.WriteLine("Entering RTCHelp.BuildDisplayName"); StringBuilder sbDisplay = new StringBuilder(entity); switch (presenceStatus) { case RTC_PRESENCE_STATUS.RTCXS_PRESENCE_OFFLINE: sbDisplay.Append(" (Offline)"); break; case RTC_PRESENCE_STATUS.RTCXS_PRESENCE_ONLINE: sbDisplay.Append(" (Online)"); break; case RTC_PRESENCE_STATUS.RTCXS_PRESENCE_AWAY: sbDisplay.Append(" (Away)"); break; case RTC_PRESENCE_STATUS.RTCXS_PRESENCE_IDLE: sbDisplay.Append(" (Idle)"); break; case RTC_PRESENCE_STATUS.RTCXS_PRESENCE_BUSY: sbDisplay.Append(" (Busy)"); break; case RTC_PRESENCE_STATUS.RTCXS_PRESENCE_BE_RIGHT_BACK: sbDisplay.Append(" (Be right back)"); break; case RTC_PRESENCE_STATUS.RTCXS_PRESENCE_ON_THE_PHONE: sbDisplay.Append(" (On the phone)"); break; case RTC_PRESENCE_STATUS.RTCXS_PRESENCE_OUT_TO_LUNCH: sbDisplay.Append(" (Out to lunch)"); break; default: break; } return(sbDisplay.ToString()); }
public static string GorunumDurumuOlustur(RTC_PRESENCE_STATUS bulunmaDurumu) { StringBuilder sbGorunenAd = new StringBuilder(); switch (bulunmaDurumu) { case RTC_PRESENCE_STATUS.RTCXS_PRESENCE_ONLINE: sbGorunenAd.Append(" (Çevrimiçi)"); imgIndex = 1; break; case RTC_PRESENCE_STATUS.RTCXS_PRESENCE_BUSY: sbGorunenAd.Append(" (Meþgul)"); imgIndex = 2; break; case RTC_PRESENCE_STATUS.RTCXS_PRESENCE_BE_RIGHT_BACK: sbGorunenAd.Append(" (Hemen dönecek)"); imgIndex = 3; break; case RTC_PRESENCE_STATUS.RTCXS_PRESENCE_AWAY: sbGorunenAd.Append(" (Dýþarýda)"); imgIndex = 4; break; case RTC_PRESENCE_STATUS.RTCXS_PRESENCE_ON_THE_PHONE: sbGorunenAd.Append(" (Telefonda)"); imgIndex = 5; break; case RTC_PRESENCE_STATUS.RTCXS_PRESENCE_OUT_TO_LUNCH: sbGorunenAd.Append(" (Öðle yemeðinde)"); imgIndex = 6; break; case RTC_PRESENCE_STATUS.RTCXS_PRESENCE_OFFLINE: sbGorunenAd.Append(" (Çevrimdýþý)"); imgIndex = 7; break; default: break; } return sbGorunenAd.ToString(); }
public void DoSetPresence(RTC_PRESENCE_STATUS presenceStatus) { Trace.WriteLine("Entering RTCPresenceCore.DoSetPresence"); this.client.SetLocalPresenceInfo(presenceStatus, null); }
public static string BuildDisplayName(string entity, RTC_PRESENCE_STATUS presenceStatus) { Trace.WriteLine("Entering RTCHelp.BuildDisplayName"); StringBuilder sbDisplay = new StringBuilder(entity); switch (presenceStatus) { case RTC_PRESENCE_STATUS.RTCXS_PRESENCE_OFFLINE: sbDisplay.Append(" (Offline)"); break; case RTC_PRESENCE_STATUS.RTCXS_PRESENCE_ONLINE: sbDisplay.Append(" (Online)"); break; case RTC_PRESENCE_STATUS.RTCXS_PRESENCE_AWAY: sbDisplay.Append(" (Away)"); break; case RTC_PRESENCE_STATUS.RTCXS_PRESENCE_IDLE: sbDisplay.Append(" (Idle)"); break; case RTC_PRESENCE_STATUS.RTCXS_PRESENCE_BUSY: sbDisplay.Append(" (Busy)"); break; case RTC_PRESENCE_STATUS.RTCXS_PRESENCE_BE_RIGHT_BACK: sbDisplay.Append(" (Be right back)"); break; case RTC_PRESENCE_STATUS.RTCXS_PRESENCE_ON_THE_PHONE: sbDisplay.Append(" (On the phone)"); break; case RTC_PRESENCE_STATUS.RTCXS_PRESENCE_OUT_TO_LUNCH: sbDisplay.Append(" (Out to lunch)"); break; default: break; } return sbDisplay.ToString(); }
public void GorunumAyarla(RTC_PRESENCE_STATUS gorunumDurumu) // MenuItem lar kullanýr. SetLocalPresenceInfo(gorunumDurumu,null) { Trace.WriteLine("set local"); istemci.SetLocalPresenceInfo(gorunumDurumu, null); }