コード例 #1
0
 /// <summary>
 /// Creates a new instance of <see cref="ModSearchRequestBuilder" />
 /// </summary>
 /// <param name="client">The <see cref="ModrinthClient" /> to build with</param>
 public ModSearchRequestBuilder(ModrinthClient client) : base(client)
 {
     Limit    = 10;
     Offset   = 0;
     Query    = string.Empty;
     Filter   = null;
     Indexing = SearchIndex.Relevance;
 }
コード例 #2
0
 /// <summary>
 /// Creates a new instance of <see cref="ReleasesSearchRequestBuilder" />
 /// </summary>
 /// <param name="client">The <see cref="ModrinthClient" /> to build with</param>
 public ReleasesSearchRequestBuilder(ModrinthClient client, Identifier id) : base(client, id)
 {
 }
コード例 #3
0
 /// <summary>
 /// Creates a new instance of <see cref="ModIdRequestBuilder" />
 /// </summary>
 /// <param name="client">The <see cref="ModrinthClient" /> to build with</param>
 public ModIdRequestBuilder(ModrinthClient client, Identifier id) : base(client, id)
 {
 }
コード例 #4
0
 /// <summary>
 /// Creates a new instance of <see cref="BuilderBase{T}"/>
 /// </summary>
 /// <param name="client">The <see cref="ModrinthClient"/> to build with</param>
 protected BuilderBase(ModrinthClient client)
 {
     this.client       = client.HttpClient;
     serializerOptions = client.SerializerOptions;
 }
コード例 #5
0
 /// <summary>
 /// Creates a new instance of <see cref="IdBuilderBase{T}" />
 /// </summary>
 /// <param name="client">The <see cref="ModrinthClient" /> to build with</param>
 protected IdBuilderBase(ModrinthClient client, Identifier id) : base(client)
 {
     Identifier = id;
 }