Exemple #1
0
 public Setting(string _Game, Discord.UserStatus _GameStatus, string _SavedToken, ulong _OwnerID, List <AdminUser> _Admins, List <BlackListedChannel> _BlackListChannels, List <GreetMessage> _GreetMessages, List <string> _SFWFolders, List <string> _NSFWFolders, string _SankakuPW, string _SankakuUN, string _osuAPIKey)
 {
     this.Game              = _Game;
     this.GameStatus        = _GameStatus;
     this.SavedToken        = _SavedToken;
     this.OwnerID           = _OwnerID;
     this.Admins            = _Admins;
     this.BlackListChannels = _BlackListChannels;
     this.GreetMessages     = _GreetMessages;
     this.SFWFolders        = _SFWFolders;
     this.NSFWFolders       = _NSFWFolders;
     this.SankakuUserName   = _SankakuUN;
     this.SankakuPassword   = _SankakuPW;
     this.osuAPIKey         = _osuAPIKey;
 }
Exemple #2
0
 public static Windows.UI.Color ToWinColor(this Discord.UserStatus status)
 {
     if (status == Discord.UserStatus.Online)
     {
         return(Windows.UI.Color.FromArgb(0xff, 0x43, 0xb5, 0x81));
     }
     else if (status == Discord.UserStatus.Idle || status == Discord.UserStatus.AFK)
     {
         return(Windows.UI.Color.FromArgb(0xff, 0xfa, 0xa6, 0x1a));
     }
     else if (status == Discord.UserStatus.DoNotDisturb)
     {
         return(Windows.UI.Color.FromArgb(0xff, 0xf0, 0x47, 0x47));
     }
     else
     {
         return(Windows.UI.Color.FromArgb(0xff, 0x74, 0x7f, 0x8d));
     }
 }
 public static UserStatus Into(this Discord.UserStatus status)
 {
     if (status == null)
     {
         return(null);
     }
     if (status == Discord.UserStatus.Online)
     {
         return(UserStatus.Online);
     }
     if (status == Discord.UserStatus.Idle)
     {
         return(UserStatus.Idle);
     }
     if (status == Discord.UserStatus.Offline)
     {
         return(UserStatus.Offline);
     }
     throw new ArgumentException("Unknown status to convert: " + status);
 }