Exemplo n.º 1
0
 public void OnLogin(OnLoginRequest userLogedin) // call back from server about new user that logged in
 {
     OnLoginEvent?.Invoke(this, new OnLoginEventArgs {
         UserName = userLogedin.UserName
     });
     //TODO: implement a info to the wpf about the user.
     // return new OnLoginResponse { IsSuccess = true, Message = "here the user info", userAlreadyLoged = new UserDTO { UserName = "******" } };
 }
Exemplo n.º 2
0
 public void OnLogin(OnLoginRequest userLogedin) // call back from server about new user that logged in
 {
     //adding the new logedin to the OnlineUsers:
     ContactStateManager.UpdateContactToOnline(new UserDTO {
         UserName = userLogedin.UserName
     });
     //raising the event:
     OnLoginEvent?.Invoke(this, new OnLoginEventArgs {
         UserName = userLogedin.UserName
     });
     //TODO: implement a info to the wpf about the user.
     // return new OnLoginResponse { IsSuccess = true, Message = "here the user info", userAlreadyLoged = new UserDTO { UserName = "******" } };
 }
Exemplo n.º 3
0
 public void OnLogin(OnLoginRequest userLogedin)
 {
 }