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 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); }