示例#1
0
 /// <summary>
 /// This is the complete init method for this class.
 /// It should be used by the children classes in the constructor in order to correctly fill the properties of the object.
 /// </summary>
 /// <param name="groupID"></param>
 /// <param name="userID"></param>
 /// <param name="isAdmin"></param>
 /// <param name="status"></param>
 protected void Init(int groupID, int userID, bool isAdmin, GroupJoinStatus status)
 {
     GroupID = groupID;
     UserID  = userID;
     IsAdmin = isAdmin;
     Status  = status;
 }
示例#2
0
        public override bool Parse(XElement xml)
        {
            if (xml == null)
            {
                return(false);
            }

            int             groupID = 0;
            int             userID  = 0;
            bool            isAdmin = false;
            GroupJoinStatus status  = GroupJoinStatus.Unknown;

            xml.ParseNode("GroupID", ref groupID);
            xml.ParseNode("UserID", ref userID);
            xml.ParseNode("IsAdmin", ref isAdmin);
            xml.ParseNode <GroupJoinStatus>("Status", ref status);

            Init(groupID, userID, isAdmin, status);

            return(true);
        }
示例#3
0
 public bool AddGroupUser(int id, int newUserID, bool isAdmin, GroupJoinStatus status)
 {
     throw new NotImplementedException();
 }
示例#4
0
 /// <summary>
 /// This is the complete init method for this class.
 /// It should be used by the children classes in the constructor in order to correctly fill the properties of the object.
 /// </summary>
 /// <param name="groupID"></param>
 /// <param name="userID"></param>
 /// <param name="isAdmin"></param>
 /// <param name="status"></param>
 protected void Init(int groupID, int userID, bool isAdmin, GroupJoinStatus status)
 {
     GroupID = groupID;
     UserID = userID;
     IsAdmin = isAdmin;
     Status = status;
 }