Пример #1
0
 /// <summary>
 /// Returns a MemoryStream for a custom rank card.
 /// </summary>
 public static MemoryStream RankCard(RankCard rankCard)
 {
     return(RequestFunctions.ImageRequest($"rankcard" +
                                          $"?username={rankCard.Username.Replace("#", "%23")}" +
                                          $"&avatar={rankCard.AvatarUrl}" +
                                          $"&custombg={rankCard.CustomBackgroundUrl ?? string.Empty}" +
                                          $"&level={rankCard.Level}" +
                                          $"&rank={rankCard.Rank}" +
                                          $"&currentxp={rankCard.CurrentXp}" +
                                          $"&nextlevelxp={rankCard.NextLevelXp}" +
                                          $"&previouslevelxp={rankCard.PreviousLevelXp}" +
                                          $"&xpcolor={rankCard.XpColorHex?.Replace("#", string.Empty) ?? string.Empty}" +
                                          $"&isboosting={rankCard.IsBoosting}"));
 }
Пример #2
0
        /// <summary>
        /// Returns a MemoryStream for an Among Us ejected meme.
        /// </summary>
        public static MemoryStream Ejected(string name, bool wasImposter, EjectColor crewmateColor = EjectColor.Random)
        {
            string color;

            if (crewmateColor == EjectColor.Random)
            {
                Array values = Enum.GetValues(typeof(EjectColor));
                color = values.GetValue(new Random().Next(values.Length - 1)).ToString().ToLower();
            }
            else
            {
                color = crewmateColor.ToString().ToLower();
            }

            return(RequestFunctions.ImageRequest($"ejected?name={name}&imposter={wasImposter}&crewmate={color}"));
        }
Пример #3
0
 /// <summary>
 /// Returns a MemoryStream for a heaven meme.
 /// </summary>
 public static MemoryStream Heaven(string avatarUrl)
 {
     return(RequestFunctions.ImageRequest($"heaven?user={avatarUrl}"));
 }
Пример #4
0
 /// <summary>
 /// Returns a MemoryStream for an I can milk you meme.
 /// </summary>
 public static MemoryStream ICanMilkYou(string faceAvatarUrl, string cowAvatarUrl)
 {
     return(RequestFunctions.ImageRequest($"icanmilkyou?user1={faceAvatarUrl}&user2={cowAvatarUrl}"));
 }
Пример #5
0
 /// <summary>
 /// Returns a MemoryStream for an I am speed meme.
 /// </summary>
 public static MemoryStream IAmSpeed(string avatarUrl)
 {
     return(RequestFunctions.ImageRequest($"iamspeed?user={avatarUrl}"));
 }
Пример #6
0
 /// <summary>
 /// Returns a MemoryStream for a grave meme.
 /// </summary>
 public static MemoryStream Grave(string avatarUrl)
 {
     return(RequestFunctions.ImageRequest($"grave?user={avatarUrl}"));
 }
Пример #7
0
 /// <summary>
 /// Returns a MemoryStream for a first time meme.
 /// </summary>
 public static MemoryStream FirstTime(string avatarUrl)
 {
     return(RequestFunctions.ImageRequest($"firsttime?user={avatarUrl}"));
 }
Пример #8
0
 /// <summary>
 /// Returns a MemoryStream for an Among Us emergency meeting meme.
 /// </summary>
 public static MemoryStream EmergencyMeeting(string text)
 {
     return(RequestFunctions.ImageRequest($"emergencymeeting?text={text}"));
 }
Пример #9
0
 /// <summary>
 /// Returns a MemoryStream for a distracted boyfriend meme.
 /// </summary>
 public static MemoryStream DistractedBoyfriend(string boyfriendAvatarURL, string womanAvatarURL, string girlfriendAvatarURL)
 {
     return(RequestFunctions.ImageRequest($"distractedbf?boyfriend={boyfriendAvatarURL}&woman={womanAvatarURL}&girlfriend={girlfriendAvatarURL}"));
 }
Пример #10
0
 /// <summary>
 /// Returns a MemoryStream for a change my mind meme.
 /// </summary>
 public static MemoryStream ChangeMyMind(string text)
 {
     return(RequestFunctions.ImageRequest($"changemymind?text={text}"));
 }
Пример #11
0
 /// <summary>
 /// Returns a MemoryStream for a wide filter.
 /// </summary>
 public static MemoryStream Wide(string imageUrl)
 {
     return(RequestFunctions.ImageRequest($"wide?image={imageUrl}"));
 }
Пример #12
0
 /// <summary>
 /// Returns a MemoryStream for a water meme.
 /// </summary>
 public static MemoryStream Water(string text)
 {
     return(RequestFunctions.ImageRequest($"water?text={text}"));
 }
Пример #13
0
 /// <summary>
 /// Returns a MemoryStream for a table flip meme.
 /// </summary>
 public static MemoryStream TableFlip(string avatarUrl)
 {
     return(RequestFunctions.ImageRequest($"tableflip?user={avatarUrl}"));
 }
Пример #14
0
 /// <summary>
 /// Returns a MemoryStream for a stonks meme.
 /// </summary>
 public static MemoryStream Stonks(string avatarUrl)
 {
     return(RequestFunctions.ImageRequest($"stonks?user={avatarUrl}"));
 }
Пример #15
0
 /// <summary>
 /// Returns a MemoryStream for a car reverse meme.
 /// </summary>
 public static MemoryStream CarReverse(string text)
 {
     return(RequestFunctions.ImageRequest($"carreverse?text={text}"));
 }
Пример #16
0
 /// <summary>
 /// Returns a MemoryStream for an NPC meme.
 /// </summary>
 public static MemoryStream Npc(string text1, string text2)
 {
     return(RequestFunctions.ImageRequest($"npc?text1={text1}&text2={text2}"));
 }