Refactored QueryFilter to QueryFilterBuilder
This commit is contained in:
parent
742d90bb98
commit
70159b11ba
|
@ -5,7 +5,7 @@ using System.Text;
|
||||||
|
|
||||||
namespace JpnCardsPokemonSdk.Utils.QueryFilter;
|
namespace JpnCardsPokemonSdk.Utils.QueryFilter;
|
||||||
|
|
||||||
public abstract class AttributedQueryFilter : IQueryFilter
|
public abstract class AttributedQueryFilterBuilder : IQueryFilterBuilder
|
||||||
{
|
{
|
||||||
public string BuildQueryString()
|
public string BuildQueryString()
|
||||||
{
|
{
|
|
@ -1,6 +1,6 @@
|
||||||
namespace JpnCardsPokemonSdk.Utils.QueryFilter;
|
namespace JpnCardsPokemonSdk.Utils.QueryFilter;
|
||||||
|
|
||||||
public class CardQueryFilter : AttributedQueryFilter
|
public class CardQueryFilterBuilder : AttributedQueryFilterBuilder
|
||||||
{
|
{
|
||||||
[QueryFilterName("id")] public int? Id { get; set; }
|
[QueryFilterName("id")] public int? Id { get; set; }
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
namespace JpnCardsPokemonSdk.Utils.QueryFilter;
|
namespace JpnCardsPokemonSdk.Utils.QueryFilter;
|
||||||
|
|
||||||
public interface IQueryFilter
|
public interface IQueryFilterBuilder
|
||||||
{
|
{
|
||||||
string BuildQueryString();
|
string BuildQueryString();
|
||||||
}
|
}
|
Loading…
Reference in a new issue