public Friendship(UserIdentifier user, UserIdentifier probableFriend, string probableFriendTenancyName, string probableFriendUserName, Guid?probableFriendProfilePictureId, EFriendshipState state) { if (user == null) { throw new ArgumentNullException(nameof(user)); } if (probableFriend == null) { throw new ArgumentNullException(nameof(probableFriend)); } if (!Enum.IsDefined(typeof(EFriendshipState), state)) { throw new Exception("Invalid EFriendshipState value: " + state); } UserId = user.UserId; TenantId = user.TenantId; FriendUserId = probableFriend.UserId; FriendTenantId = probableFriend.TenantId; FriendTenancyName = probableFriendTenancyName; FriendUserName = probableFriendUserName; State = state; FriendProfilePictureId = probableFriendProfilePictureId; CreationTime = Clock.Now; }
public void SendUserStateChangeToClients(IReadOnlyList <IOnlineClient> clients, UserIdentifier user, EFriendshipState newState) { }