コード例 #1
0
ファイル: Presence.cs プロジェクト: AdiBorsos/HunterPie
 public DiscordRPC.Party MakeParty(int partySize, int maxParty, string partyHash)
 {
     DiscordRPC.Party party = new DiscordRPC.Party {
         Size = partySize,
         Max  = maxParty,
         ID   = partyHash
     };
     return(party);
 }
コード例 #2
0
 /// <summary>
 /// Creates new instances of the party, using the <see cref="DiscordRPC.Party"/> as the base.
 /// </summary>
 /// <param name="party">The base to use the values from</param>
 public DiscordParty(DiscordRPC.Party party)
 {
     this.identifer = party.ID;
     this.size      = party.Size;
     this.maxSize   = party.Max;
 }