Пример #1
0
        void UserBO_OnUserExtendFieldChanged(ExtendedFieldCollection extendedFields)
        {
            ExtendedFieldProxy[] fields = new ExtendedFieldProxy[extendedFields.Count];

            int i = 0;

            foreach (ExtendedField field in extendedFields)
            {
                fields[i] = ProxyConverter.GetExtendedFieldProxy(field);
                i++;
            }

            CreateInstruct(0, InstructType.Setting_UpdateUserExtendedField, fields);
        }
Пример #2
0
 void UserBO_OnUserProfileChanged(AuthUser user)
 {
     CreateInstruct(user.UserID, InstructType.User_ChangeProfile, ProxyConverter.GetUserProfileProxy(user));
 }
Пример #3
0
        void UserBO_OnUserCreated(AuthUser newUser)
        {
            DataForNewUser data = ProxyConverter.GetDataForNewUser(newUser);

            CreateInstruct(0, InstructType.User_Create, data);
        }
Пример #4
0
        void UserBO_OnUserAvatarChanged(int userID, string avatarSrc, string smallAvatarPath, string defaultAvatarPath, string bigAvatarPath)
        {
            UserAvatarProxy data = ProxyConverter.GetDataForChangeAvatar(userID, avatarSrc, smallAvatarPath, defaultAvatarPath, bigAvatarPath);

            this.CreateInstruct(userID, InstructType.User_ChangeAvatar, data);
        }
Пример #5
0
 void NotifyBO_OnSystemNotifyCreate(SystemNotify notify)
 {
     this.CreateInstruct(0, InstructType.Notify_SystemNotifyCreate, ProxyConverter.GetSystemNotifyProxy(notify));
 }
Пример #6
0
 void NotifyBO_OnUserNotifyCountChanged(UnreadNotifies unreads)
 {
     CreateInstruct(unreads.UserID, InstructType.Notify_UserNotifyCountChanged, ProxyConverter.GetUnreadNotifiesProxy(unreads));
 }
Пример #7
0
 void FriendBO_OnUpdateFriendHot(int userID, MaxLabs.bbsMax.Enums.HotType type, int friendUserID)
 {
     CreateInstruct(userID, InstructType.Friend_UpdateHot, ProxyConverter.GetFriendHotProxy(userID, type, friendUserID));
 }
Пример #8
0
        //---

        void ChatBO_OnChatUsersMessageCountChanged(Dictionary <int, int> usersUnreadMessageCount)
        {
            this.CreateInstruct(0, InstructType.User_ChatMessageChanged, ProxyConverter.GetUserMessageCountProxy(usersUnreadMessageCount));
        }
Пример #9
0
 void FriendBO_OnAcceptFriend(int userID, int friendUserID, int groupID, int hisGroupID)
 {
     CreateInstruct(userID, InstructType.Friend_Accept, ProxyConverter.GetFriendNotifyProxy(userID, friendUserID, groupID, hisGroupID));
 }
Пример #10
0
 void FriendBO_OnAddUsersToBlacklist(int userID, IEnumerable <int> userIdsToAdd)
 {
     CreateInstruct(userID, InstructType.Friend_AddBlack, ProxyConverter.GetUserIDsProxy(userID, userIdsToAdd));
 }
Пример #11
0
 void FriendBO_OnMoveFriend(int userID, IEnumerable <int> friendIDs, int newGroupID)
 {
     CreateInstruct(userID, InstructType.Friend_Moved, ProxyConverter.GetFriendIDsProxy(userID, friendIDs, newGroupID));
 }
Пример #12
0
 void FriendBO_OnRemoveFriend(int userID, IEnumerable <int> friendIDs)
 {
     CreateInstruct(userID, InstructType.Friend_Deleted, ProxyConverter.GetFriendIDsProxy(userID, friendIDs, null));
 }
Пример #13
0
 void FriendBO_OnFriendGroupShielded(int userID, IEnumerable <int> groupIDs, bool isShield)
 {
     CreateInstruct(userID, InstructType.Friend_GroupShielded, ProxyConverter.GetShieldFriendGroupProxy(userID, groupIDs, isShield));
 }
Пример #14
0
 void FriendBO_OnFriendGroupCreated(int userID, FriendGroup group)
 {
     CreateInstruct(userID, InstructType.Friend_GroupCreated, ProxyConverter.GetFriendGroupProxy(group));
 }
Пример #15
0
 void FriendBO_OnFriendGroupDeleted(int userID, int groupID, bool deleteFriend)
 {
     CreateInstruct(userID, InstructType.Friend_GroupDeleted, ProxyConverter.GetDeleteFriendGroupProxy(userID, groupID, deleteFriend));
 }