Esempio n. 1
0
        // Only used for a pbguid
        public CBanInfo(string strSoldierName, string strGUID, string strIP, TimeoutSubset ctsBanLength,
                       string strReason) {
            this.SoldierName = strSoldierName;
            this.Guid = strGUID;
            this.IpAddress = strIP;
            this.IdType = "pbguid";

            this.BanLength = ctsBanLength;
            this.Reason = strReason;
        }
Esempio n. 2
0
        // Only used for a pbguid
        public CBanInfo(string strSoldierName, string strGUID, string strIP, TimeoutSubset ctsBanLength,
                        string strReason)
        {
            this.SoldierName = strSoldierName;
            this.Guid        = strGUID;
            this.IpAddress   = strIP;
            this.IdType      = "pbguid";

            this.BanLength = ctsBanLength;
            this.Reason    = strReason;
        }
Esempio n. 3
0
        // Ban added
        public CBanInfo(string strBanType, string strId, TimeoutSubset ctsBanLength, string strReason) {
            this.IdType = strBanType;
            this.BanLength = ctsBanLength;
            this.Reason = strReason;

            if (String.Compare(this.IdType, "name") == 0 || String.Compare(this.IdType, "persona") == 0) {
                this.SoldierName = strId;
            }
            else if (String.Compare(this.IdType, "ip") == 0) {
                this.IpAddress = strId;
            }
            else if (String.Compare(this.IdType, "guid") == 0) {
                this.Guid = strId;
            }
        }
Esempio n. 4
0
        // Ban added
        public CBanInfo(string strBanType, string strId, TimeoutSubset ctsBanLength, string strReason)
        {
            this.IdType    = strBanType;
            this.BanLength = ctsBanLength;
            this.Reason    = strReason;

            if (String.Compare(this.IdType, "name") == 0 || String.Compare(this.IdType, "persona") == 0)
            {
                this.SoldierName = strId;
            }
            else if (String.Compare(this.IdType, "ip") == 0)
            {
                this.IpAddress = strId;
            }
            else if (String.Compare(this.IdType, "guid") == 0)
            {
                this.Guid = strId;
            }
        }