Ready to beta test
This commit is contained in:
22
classlib/WIQL/Column.cs
Normal file
22
classlib/WIQL/Column.cs
Normal file
@ -0,0 +1,22 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace Mesa_Backlog.Library.WIQL;
|
||||
|
||||
public class Column
|
||||
{
|
||||
[JsonConstructor]
|
||||
public Column(
|
||||
string referenceName,
|
||||
string name,
|
||||
string url
|
||||
)
|
||||
{
|
||||
ReferenceName = referenceName;
|
||||
Name = name;
|
||||
Url = url;
|
||||
}
|
||||
|
||||
public string ReferenceName { init; get; }
|
||||
public string Name { init; get; }
|
||||
public string Url { init; get; }
|
||||
}
|
22
classlib/WIQL/Field.cs
Normal file
22
classlib/WIQL/Field.cs
Normal file
@ -0,0 +1,22 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace Mesa_Backlog.Library.WIQL;
|
||||
|
||||
public class Field
|
||||
{
|
||||
[JsonConstructor]
|
||||
public Field(
|
||||
string referenceName,
|
||||
string name,
|
||||
string url
|
||||
)
|
||||
{
|
||||
ReferenceName = referenceName;
|
||||
Name = name;
|
||||
Url = url;
|
||||
}
|
||||
|
||||
public string ReferenceName { init; get; }
|
||||
public string Name { init; get; }
|
||||
public string Url { init; get; }
|
||||
}
|
31
classlib/WIQL/Root.cs
Normal file
31
classlib/WIQL/Root.cs
Normal file
@ -0,0 +1,31 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace Mesa_Backlog.Library.WIQL;
|
||||
|
||||
public class Root
|
||||
{
|
||||
[JsonConstructor]
|
||||
public Root(
|
||||
string queryType,
|
||||
string queryResultType,
|
||||
DateTime asOf,
|
||||
Column[] columns,
|
||||
SortColumn[] sortColumns,
|
||||
WorkItem[] workItems
|
||||
)
|
||||
{
|
||||
QueryType = queryType;
|
||||
QueryResultType = queryResultType;
|
||||
AsOf = asOf;
|
||||
Columns = columns;
|
||||
SortColumns = sortColumns;
|
||||
WorkItems = workItems;
|
||||
}
|
||||
|
||||
public string QueryType { init; get; }
|
||||
public string QueryResultType { init; get; }
|
||||
public DateTime AsOf { init; get; }
|
||||
public Column[] Columns { init; get; }
|
||||
public SortColumn[] SortColumns { init; get; }
|
||||
public WorkItem[] WorkItems { init; get; }
|
||||
}
|
19
classlib/WIQL/SortColumn.cs
Normal file
19
classlib/WIQL/SortColumn.cs
Normal file
@ -0,0 +1,19 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace Mesa_Backlog.Library.WIQL;
|
||||
|
||||
public class SortColumn
|
||||
{
|
||||
[JsonConstructor]
|
||||
public SortColumn(
|
||||
Field field,
|
||||
bool descending
|
||||
)
|
||||
{
|
||||
Field = field;
|
||||
Descending = descending;
|
||||
}
|
||||
|
||||
public Field Field { init; get; }
|
||||
public bool Descending { init; get; }
|
||||
}
|
19
classlib/WIQL/WorkItem.cs
Normal file
19
classlib/WIQL/WorkItem.cs
Normal file
@ -0,0 +1,19 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace Mesa_Backlog.Library.WIQL;
|
||||
|
||||
public class WorkItem
|
||||
{
|
||||
[JsonConstructor]
|
||||
public WorkItem(
|
||||
int id,
|
||||
string url
|
||||
)
|
||||
{
|
||||
Id = id;
|
||||
Url = url;
|
||||
}
|
||||
|
||||
public int Id { init; get; }
|
||||
public string Url { init; get; }
|
||||
}
|
Reference in New Issue
Block a user