Skip to content

Commit

Permalink
Added missing models
Browse files Browse the repository at this point in the history
  • Loading branch information
Bert Cotton authored and Bert Cotton committed Aug 4, 2017
1 parent 4c8e674 commit b6a56eb
Show file tree
Hide file tree
Showing 8 changed files with 117 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ src/*/wwwroot/lib/
src/*/wwwroot/fonts/
src/*/wwwroot/_references.js

!src/**/Models/Releases/


node_modules/
Expand Down
19 changes: 19 additions & 0 deletions src/TfsAdvanced.Updater/Models/Releases/Artifact.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
using System.Text;

namespace TFSAdvanced.Updater.Models.Releases
{
public class Artifact
{
public string sourceId { get; set; }

public string type { get; set; }

public string alias { get; set; }

public DefinitionReference definitionReference { get; set; }

public bool isPrimary { get; set; }
}
}
17 changes: 17 additions & 0 deletions src/TfsAdvanced.Updater/Models/Releases/DefinitionReference.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Text;

namespace TFSAdvanced.Updater.Models.Releases
{
public class DefinitionReference
{
public IdNameReference artifactSourceDefinitionUrl { get; set; }

public IdNameReference definition { get; set; }

public IdNameReference project { get; set; }

public IdNameReference defaultVersionType { get; set; }
}
}
13 changes: 13 additions & 0 deletions src/TfsAdvanced.Updater/Models/Releases/IdNameReference.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Text;

namespace TFSAdvanced.Updater.Models.Releases
{
public class IdNameReference
{
public string id { get; set; }

public string name { get; set; }
}
}
34 changes: 34 additions & 0 deletions src/TfsAdvanced.Updater/Models/Releases/ReleaseDefinition.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
using System;
using System.Collections.Generic;
using System.Text;

namespace TFSAdvanced.Updater.Models.Releases
{
public class ReleaseDefinition
{

public int id { get; set; }

public string source { get; set; }

public int revision { get; set; }

public string name { get; set; }

public User createdBy { get; set; }

public DateTime createdOn { get; set; }

public User modifiedBy { get; set; }

public DateTime modifiedOn { get; set; }

public Artifact[] artifacts { get; set; }

public string releaseNameFormat { get; set; }

public ReleaseLink _links { get; set; }

public string url { get; set; }
}
}
14 changes: 14 additions & 0 deletions src/TfsAdvanced.Updater/Models/Releases/ReleaseLink.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
using System;
using System.Collections.Generic;
using System.Text;
using TfsAdvanced.Models;

namespace TFSAdvanced.Updater.Models.Releases
{
public class ReleaseLink
{
public HrefLink self { get; set; }

public HrefLink web { get; set; }
}
}
18 changes: 18 additions & 0 deletions src/TfsAdvanced.Updater/Models/Releases/User.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
using System.Text;

namespace TFSAdvanced.Updater.Models.Releases
{
public class User
{
public string id { get; set; }

public string displayName { get; set; }

public string uniqueuName { get; set; }

public string imageUrl { get; set; }

}
}
2 changes: 1 addition & 1 deletion src/TfsAdvanced.Updater/Tasks/RepositoryUpdater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Threading.Tasks;
using Hangfire;
using TfsAdvanced.DataStore.Repository;
using TfsAdvanced.Models;
Expand Down

0 comments on commit b6a56eb

Please sign in to comment.