Skip to main content

Inherit Class

Create an inherited class.

public class QueryRequest
{
//query
public int? from { get; set; }
public int? size { get; set; }
public int? memberId { get; set; }
public List<Filter> filters { get; set; }
public Sort sort { get; set; }
}

public class QueryRequestWithQ : QueryRequest{
public class QueryRequest
{

//query
public string q { get; set; }
}
}