public SkypeContactDetailItem(ContactItem owner, string handle) { this.Handle = handle; this.status = Skype.ContactStatus (this.Handle); //if offline was returned, query to see if the user has a phone number set, maybe the user's status is really "SKYPEOUT" if (this.status == Skype.Statuses [OnlineStatus.Offline]) { foreach (string detail in owner.Details.Where (d => d.Contains ("phone"))) { Console.WriteLine ("Checking {0} :: {1}", detail, owner [detail]); if (Skype.ContactStatus (Skype.StripPhoneChars (owner [detail])) == Skype.Statuses [OnlineStatus.SkypeOut]) this.status = Skype.Statuses [OnlineStatus.SkypeOut]; } } }
public static void SetStatus(StatusItem newStatus) { if (SkypeObject == null) { TryGetSkypeObject (); if (SkypeObject == null) return; } SkypeObject.Invoke (string.Format ("SET USERSTATUS {0}", newStatus.Code)); }