Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Created PersonChangeDelta entity * Added Key attribute to Id property of Game entity * Made PersonId property non-mandatory in the Person entity * Code tidy up Co-authored-by: Rajeev Shenoy <itft.github@itftennis.com>
- Loading branch information
Showing
8 changed files
with
114 additions
and
19 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
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
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
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,87 @@ | ||
using System; | ||
using System.Collections.ObjectModel; | ||
using System.Xml.Serialization; | ||
using Tennis_Open_Data_Standards.Attributes; | ||
|
||
namespace Tennis_Open_Data_Standards | ||
{ | ||
[NoUnboundCustom] | ||
[XmlRoot("Upserted"), XmlType(TypeName = "Upserted")] | ||
public class Upserted | ||
{ | ||
[XmlElement(IsNullable = false)] | ||
public Collection<UpsertedItem> UpsertedItems { get; set; } | ||
} | ||
public class UpsertedItem | ||
{ | ||
public string OrganisationID { get; set; } | ||
public string ClientID { get; set; } | ||
public DateTime DateTime { get; set; } | ||
public Collection<Person> Person { get; set; } | ||
} | ||
|
||
[NoUnboundCustom] | ||
[XmlRoot("Deleted"), XmlType(TypeName = "Deleted")] | ||
public class Deleted | ||
{ | ||
[XmlElement(IsNullable = false)] | ||
public Collection<DeletedItem> DeletedItems { get; set; } | ||
} | ||
public class DeletedItem | ||
{ | ||
public string OrganisationID { get; set; } | ||
public string ClientID { get; set; } | ||
public DateTime DateTime { get; set; } | ||
public string TennisId { get; set; } | ||
} | ||
|
||
|
||
[NoUnboundCustom] | ||
[XmlRoot("Merged"), XmlType(TypeName = "Merged")] | ||
public class Merged | ||
{ | ||
[XmlElement(IsNullable = false)] | ||
public Collection<MergedItem> MergedItems { get; set; } | ||
} | ||
public class MergedItem | ||
{ | ||
public string OrganisationID { get; set; } | ||
public string ClientID { get; set; } | ||
public DateTime DateTime { get; set; } | ||
public string KeeperTennisId { get; set; } | ||
public string RemoverTennisId { get; set; } | ||
} | ||
|
||
|
||
|
||
public class PersonChangeDelta | ||
{ | ||
/// <summary> | ||
/// Upserted | ||
/// </summary> | ||
/// <remarks> | ||
/// Please see <see cref="Upserted">Upserted</see> | ||
/// </remarks> | ||
[NoUnboundCustom] | ||
[XmlElement("Upserted", typeof(Upserted))] | ||
public Collection<Upserted> Upserted { get; set; } | ||
/// <summary> | ||
/// Deleted | ||
/// </summary> | ||
/// <remarks> | ||
/// Please see <see cref="Deleted">Deleted</see> | ||
/// </remarks> | ||
[NoUnboundCustom] | ||
[XmlElement("Deleted", typeof(Deleted))] | ||
public Collection<Deleted> Deleted { get; set; } | ||
/// <summary> | ||
/// Merged | ||
/// </summary> | ||
/// <remarks> | ||
/// Please see <see cref="Merged">Merged</see> | ||
/// </remarks> | ||
[NoUnboundCustom] | ||
[XmlElement("Merged", typeof(Merged))] | ||
public Collection<Merged> Merged { get; set; } | ||
} | ||
} |
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 |
---|---|---|
|
@@ -20,7 +20,6 @@ public class Shots | |
/// </remarks> | ||
public class Shot | ||
{ | ||
|
||
/// <summary> | ||
/// Number | ||
/// </summary> | ||
|
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
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
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