-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
1,621 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>netstandard2.0</TargetFramework> | ||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors> | ||
<Nullable>annotations</Nullable> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<LangVersion>8.0</LangVersion> | ||
<IncludeGeneratorSharedCode>true</IncludeGeneratorSharedCode> | ||
<RestoreAdditionalProjectSources>https://azuresdkartifacts.blob.core.windows.net/azure-sdk-tools/index.json</RestoreAdditionalProjectSources> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.Azure.AutoRest.CSharp" Version="3.0.0-beta.20211224.1" PrivateAssets="All" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Azure.Core" Version="1.22.0-alpha.20211207.1" /> | ||
</ItemGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,127 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
// <auto-generated/> | ||
|
||
#nullable disable | ||
|
||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
|
||
namespace DecksiteAPI.Models | ||
{ | ||
/// <summary> Model factory for read-only models. </summary> | ||
public static partial class DecksiteAPIModelFactory | ||
{ | ||
/// <summary> Initializes a new instance of MultipleDecks. </summary> | ||
/// <param name="objects"></param> | ||
/// <param name="page"></param> | ||
/// <param name="total"></param> | ||
/// <returns> A new <see cref="Models.MultipleDecks"/> instance for mocking. </returns> | ||
public static MultipleDecks MultipleDecks(IEnumerable<Deck> objects = null, int? page = null, int? total = null) | ||
{ | ||
objects ??= new List<Deck>(); | ||
|
||
return new MultipleDecks(objects?.ToList(), page, total); | ||
} | ||
|
||
/// <summary> Initializes a new instance of Deck. </summary> | ||
/// <param name="id"></param> | ||
/// <param name="name"></param> | ||
/// <param name="createdDate"></param> | ||
/// <param name="updatedDate"></param> | ||
/// <param name="wins"></param> | ||
/// <param name="losses"></param> | ||
/// <param name="draws"></param> | ||
/// <param name="finish"></param> | ||
/// <param name="archetypeId"></param> | ||
/// <param name="archetypeName"></param> | ||
/// <param name="sourceUrl"></param> | ||
/// <param name="competitionId"></param> | ||
/// <param name="competitionName"></param> | ||
/// <param name="person"></param> | ||
/// <param name="decklistHash"></param> | ||
/// <param name="retired"></param> | ||
/// <param name="colors"></param> | ||
/// <param name="omw"></param> | ||
/// <param name="seasonId"></param> | ||
/// <param name="maindeck"></param> | ||
/// <param name="sideboard"></param> | ||
/// <param name="url"></param> | ||
/// <param name="sourceName"></param> | ||
/// <param name="competitionTypeName"></param> | ||
/// <param name="lastArchetypeChange"></param> | ||
/// <returns> A new <see cref="Models.Deck"/> instance for mocking. </returns> | ||
public static Deck Deck(int? id = null, string name = null, DateTimeOffset? createdDate = null, DateTimeOffset? updatedDate = null, int? wins = null, int? losses = null, int? draws = null, int? finish = null, int? archetypeId = null, string archetypeName = null, string sourceUrl = null, int? competitionId = null, string competitionName = null, string person = null, string decklistHash = null, bool? retired = null, IEnumerable<string> colors = null, string omw = null, int? seasonId = null, IEnumerable<DecklistEntry> maindeck = null, IEnumerable<DecklistEntry> sideboard = null, string url = null, string sourceName = null, string competitionTypeName = null, int? lastArchetypeChange = null) | ||
{ | ||
colors ??= new List<string>(); | ||
maindeck ??= new List<DecklistEntry>(); | ||
sideboard ??= new List<DecklistEntry>(); | ||
|
||
return new Deck(id, name, createdDate, updatedDate, wins, losses, draws, finish, archetypeId, archetypeName, sourceUrl, competitionId, competitionName, person, decklistHash, retired, colors?.ToList(), omw, seasonId, maindeck?.ToList(), sideboard?.ToList(), url, sourceName, competitionTypeName, lastArchetypeChange); | ||
} | ||
|
||
/// <summary> Initializes a new instance of DecklistEntry. </summary> | ||
/// <param name="n"></param> | ||
/// <param name="name"></param> | ||
/// <returns> A new <see cref="Models.DecklistEntry"/> instance for mocking. </returns> | ||
public static DecklistEntry DecklistEntry(int? n = null, string name = null) | ||
{ | ||
return new DecklistEntry(n, name); | ||
} | ||
|
||
/// <summary> Initializes a new instance of Competition. </summary> | ||
/// <param name="id"></param> | ||
/// <param name="name"></param> | ||
/// <param name="startDate"></param> | ||
/// <param name="endDate"></param> | ||
/// <param name="topN"></param> | ||
/// <param name="numDecks"></param> | ||
/// <param name="numReviewed"></param> | ||
/// <param name="sponsorName"></param> | ||
/// <param name="seriesName"></param> | ||
/// <param name="type"></param> | ||
/// <param name="seasonId"></param> | ||
/// <param name="decks"></param> | ||
/// <returns> A new <see cref="Models.Competition"/> instance for mocking. </returns> | ||
public static Competition Competition(int? id = null, string name = null, DateTimeOffset? startDate = null, DateTimeOffset? endDate = null, int? topN = null, int? numDecks = null, int? numReviewed = null, string sponsorName = null, string seriesName = null, string type = null, int? seasonId = null, IEnumerable<Deck> decks = null) | ||
{ | ||
decks ??= new List<Deck>(); | ||
|
||
return new Competition(id, name, startDate, endDate, topN, numDecks, numReviewed, sponsorName, seriesName, type, seasonId, decks?.ToList()); | ||
} | ||
|
||
/// <summary> Initializes a new instance of RotationDetails. </summary> | ||
/// <param name="last"></param> | ||
/// <param name="next"></param> | ||
/// <param name="diff"></param> | ||
/// <param name="friendlyDiff"></param> | ||
/// <returns> A new <see cref="Models.RotationDetails"/> instance for mocking. </returns> | ||
public static RotationDetails RotationDetails(Set last = null, Set next = null, float? diff = null, string friendlyDiff = null) | ||
{ | ||
return new RotationDetails(last, next, diff, friendlyDiff); | ||
} | ||
|
||
/// <summary> Initializes a new instance of Set. </summary> | ||
/// <param name="code"></param> | ||
/// <param name="name"></param> | ||
/// <param name="enterDate"></param> | ||
/// <param name="exitDate"></param> | ||
/// <param name="enterDateDt"></param> | ||
/// <returns> A new <see cref="Models.Set"/> instance for mocking. </returns> | ||
public static Set Set(string code = null, string name = null, ReleaseDate enterDate = null, ReleaseDate exitDate = null, string enterDateDt = null) | ||
{ | ||
return new Set(code, name, enterDate, exitDate, enterDateDt); | ||
} | ||
|
||
/// <summary> Initializes a new instance of ReleaseDate. </summary> | ||
/// <param name="exact"></param> | ||
/// <param name="rough"></param> | ||
/// <returns> A new <see cref="Models.ReleaseDate"/> instance for mocking. </returns> | ||
public static ReleaseDate ReleaseDate(DateTimeOffset? exact = null, string rough = null) | ||
{ | ||
return new ReleaseDate(exact, rough); | ||
} | ||
} | ||
} |
Oops, something went wrong.