コード例 #1
0
ファイル: ProxyConverter.cs プロジェクト: zhangbo27/bbsmax
        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);
        }
コード例 #2
0
ファイル: ProxyConverter.cs プロジェクト: zhangbo27/bbsmax
        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);
        }