Пример #1
0
 /// <summary>
 /// Gets the guild's name of the <see cref="MutualGuild"/>.
 /// </summary>
 /// <param name="mg">The <see cref="MutualGuild"/>.</param>
 /// <returns>The name of the Guild for <paramref name="mg"/>.</returns>
 public static string GetName(this MutualGuild mg) => Guild(mg)?.Model?.Name;
Пример #2
0
 /// <summary>
 /// Gets the icon url of the <see cref="MutualGuild"/>.
 /// </summary>
 /// <param name="mg">The <see cref="MutualGuild"/>.</param>
 /// <returns>The icon url of the Guild for <paramref name="mg"/>.</returns>
 public static string GetIconUrl(this MutualGuild mg)
 {
     return(Guild(mg)?.IconUrl);
 }
Пример #3
0
 /// <summary>
 /// Gets the BindableGuild for the <see cref="MutualGuild"/>.
 /// </summary>
 /// <param name="mg">The <see cref="MutualGuild"/>.</param>
 /// <returns>The <see cref="BindableGuild"/> for the <see cref="MutualGuild"/>.</returns>
 public static BindableGuild Guild(this MutualGuild mg) => SimpleIoc.Default.GetInstance <IGuildsService>().GetGuild(mg.Id);