private OnlineStatus ConvertYahooToStatus(YahooStatus status) { switch (status) { case YahooStatus.Available: return(OnlineStatus.Online); case YahooStatus.Idle: return(OnlineStatus.Idle); default: case YahooStatus.NotAtHome: case YahooStatus.NotAtDesk: case YahooStatus.NotInOffice: case YahooStatus.OnPhone: case YahooStatus.OnVacation: case YahooStatus.OutToLunch: case YahooStatus.SteppedOut: case YahooStatus.Custom: case YahooStatus.BRB: return(OnlineStatus.Away); case YahooStatus.Busy: return(OnlineStatus.Busy); case YahooStatus.Invisible: return(OnlineStatus.AppearOffline); case YahooStatus.Offline: return(OnlineStatus.Offline); } }
public Message(UInt32 sessionID, YahooService service, YahooStatus status) { header.SessionIdentifier = sessionID; header.Service = service; header.Status = status; }
public Message(UInt32 sessionID, YahooService service, YahooStatus status) { header.SessionIdentifier = sessionID; header.Service = service; header.Status = status; }