public static MaxLabs.Passport.Proxy.FriendIDsProxy GetFriendIDsProxy(int userID, IEnumerable<int> friendIDs, int? groupID) { MaxLabs.Passport.Proxy.FriendIDsProxy friendIDsProxy = new FriendIDsProxy(); List<int> ids = new List<int>(); foreach (int id in friendIDs) ids.Add(id); friendIDsProxy.FriendIDs = ids; friendIDsProxy.UserID = userID; if (groupID != null) friendIDsProxy.FriendGroupID = groupID.Value; return friendIDsProxy; }
public override void Execute(int userID, DateTime instructDateTime, string datas) { MaxLabs.Passport.Proxy.FriendIDsProxy friendIDsProxy = DataReadWrap.Get <MaxLabs.Passport.Proxy.FriendIDsProxy>(datas); FriendBO.Instance.Client_MoveFriends(friendIDsProxy.UserID, friendIDsProxy.FriendIDs, friendIDsProxy.FriendGroupID); }