public static void PublishState(string account, Tags.jabber.client.show.valueEnum statusValue, string message) { #if DEBUG System.Diagnostics.Debug.WriteLine("[Frontend] Publishing State for: " + account); #endif var presence = new Tags.jabber.client.presence(); if (!string.IsNullOrEmpty(message)) { var status = new Tags.jabber.client.status(); status.Value = message; presence.Add(status); } if (statusValue != Tags.jabber.client.show.valueEnum.none) { var show = new Tags.jabber.client.show(); show.Value = statusValue; presence.Add(show); } Runtime.Interface.SendTag(account, presence); }