Exemple #1
0
        public static MaxLabs.Passport.Proxy.DataForShieldFriendGroup GetShieldFriendGroupProxy(int userID, IEnumerable<int> groupIDs, bool isShield)
        {
            MaxLabs.Passport.Proxy.DataForShieldFriendGroup shieldFriendGroupProxy = new DataForShieldFriendGroup();

            List<int> ids = new List<int>();
            foreach (int id in groupIDs)
                ids.Add(id);
            shieldFriendGroupProxy.GroupIDs = ids;
            shieldFriendGroupProxy.IsShield = isShield;
            shieldFriendGroupProxy.OperatorUserID = userID;

            return shieldFriendGroupProxy;
        }
Exemple #2
0
        public static DataForShieldFriendGroup GetShieldFriendGroupProxy(int userID, List<int> groupIDs, bool isShield)
        {
            DataForShieldFriendGroup shieldFriendGroupProxy = new DataForShieldFriendGroup();
            shieldFriendGroupProxy.OperatorUserID = userID;
            shieldFriendGroupProxy.IsShield = isShield;
            shieldFriendGroupProxy.GroupIDs = groupIDs;

            return shieldFriendGroupProxy;
        }
 public override void Execute(int userID, DateTime instructDateTime, string datas)
 {
     MaxLabs.Passport.Proxy.DataForShieldFriendGroup shieldFriendGroupProxy = DataReadWrap.Get <MaxLabs.Passport.Proxy.DataForShieldFriendGroup>(datas);
     FriendBO.Instance.Client_ShieldFriendGroups(shieldFriendGroupProxy.OperatorUserID, shieldFriendGroupProxy.GroupIDs, shieldFriendGroupProxy.IsShield);
 }