Example #1
0
 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);
 }
Example #2
0
 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);
 }
Example #3
0
 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);
 }
Example #4
0
 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);
 }
Example #5
0
 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);
     }
 }
Example #6
0
 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);
     }
 }
Example #7
0
 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);
     }
 }
Example #8
0
 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;
 }
 public PacketClientNotificationHandler(IFeenPhonePacketNetState state)
 {
     this.State  = state;
     this.Writer = state.Writer;
 }