internal static void OnLogout(IFeenPhoneNetstate state) { foreach (var feen in AllFeens) if (feen != state.Notifier && state.User != null) feen.OnUserLogout(state.User); if (ServerHost.LocalClient != null) ServerHost.LocalClient.Notifier.OnUserLogout(state.User); }
internal static void OnDisconnect(IFeenPhoneNetstate state) { foreach (var feen in AllFeens.ToList()) if (feen != state.Notifier && state.User != null) feen.OnUserDisconnected(state); if (ServerHost.LocalClient != null) ServerHost.LocalClient.Notifier.OnUserDisconnected(state); }
internal static void OnChat(IFeenPhoneNetstate state, string text) { foreach (var feen in AllFeens) if (feen != state.Notifier && state.User != null) feen.OnChat(state, text); if (ServerHost.LocalClient != null) ServerHost.LocalClient.Notifier.OnChat(state, text); }
internal static void OnAudio(IFeenPhoneNetstate state, Guid userID, Audio.Codecs.CodecID Codec, byte[] data, int dataLen) { foreach (var feen in AllFeens) if (feen != state.Notifier && state.User != null) feen.OnAudio(userID, Codec, data, dataLen); if (ServerHost.LocalClient != null && ServerHost.LocalClient != state) ServerHost.LocalClient.Notifier.OnAudio(userID, Codec, data, dataLen); }
internal static void OnLogout(IFeenPhoneNetstate state) { foreach (var feen in AllFeens) { if (feen != state.Notifier && state.User != null) { feen.OnUserLogout(state.User); } } if (ServerHost.LocalClient != null) { ServerHost.LocalClient.Notifier.OnUserLogout(state.User); } }
internal static void OnDisconnect(IFeenPhoneNetstate state) { foreach (var feen in AllFeens.ToList()) { if (feen != state.Notifier && state.User != null) { feen.OnUserDisconnected(state); } } if (ServerHost.LocalClient != null) { ServerHost.LocalClient.Notifier.OnUserDisconnected(state); } }
internal static void OnAudio(IFeenPhoneNetstate state, Guid userID, Audio.Codecs.CodecID Codec, byte[] data, int dataLen) { foreach (var feen in AllFeens) { if (feen != state.Notifier && state.User != null) { feen.OnAudio(userID, Codec, data, dataLen); } } if (ServerHost.LocalClient != null && ServerHost.LocalClient != state) { ServerHost.LocalClient.Notifier.OnAudio(userID, Codec, data, dataLen); } }
internal static void OnChat(IFeenPhoneNetstate state, string text) { foreach (var feen in AllFeens) { if (feen != state.Notifier && state.User != null) { feen.OnChat(state, text); } } if (ServerHost.LocalClient != null) { ServerHost.LocalClient.Notifier.OnChat(state, text); } }
public UserStatusModel(IUser user) { this.User = user; if (User is IUserClient) { var client = ((IUserClient)User).Client as IFeenPhoneNetstate; if (client != null) { client.PropertyChanged += client_PropertyChanged; this.State = client; } } ResetCallTime(); Timer UpdateTimer = new Timer(200.0); UpdateTimer.Elapsed += UpdateTimer_Elapsed; UpdateTimer.Start(); }
public PacketClientNotificationHandler(IFeenPhonePacketNetState state) { this.State = state; this.Writer = state.Writer; }