示例#1
0
 internal void SetRank(SteamID id, EClanPermission rank)
 {
     var member = _members.FirstOrDefault(m => m.Persona.Id == id);
     if (member == null)
         _members.Add(new Member(Bot.GetPersona(id), rank));
     else
         member.Rank = rank;
 }
示例#2
0
文件: Users.cs 项目: krixalis/RohBot
 private static string GetRankString(EClanPermission permission)
 {
     switch (permission)
     {
         case EClanPermission.Owner:
             return "Administrator";
         case EClanPermission.Officer:
         case EClanPermission.Moderator:
             return "Moderator";
         case EClanPermission.Member:
             return "Member";
         default:
             return "Guest";
     }
 }
示例#3
0
        private static string GetRankString(EClanPermission permission)
        {
            switch (permission)
            {
            case EClanPermission.Owner:
                return("Administrator");

            case EClanPermission.Officer:
            case EClanPermission.Moderator:
                return("Moderator");

            case EClanPermission.Member:
                return("Member");

            default:
                return("Guest");
            }
        }
示例#4
0
 public Member(SteamPersona persona, EClanPermission rank)
 {
     Persona = persona;
     Rank = rank;
 }