-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: openactive-bot <[email protected]>
- Loading branch information
1 parent
7da4cf4
commit 0def13e
Showing
6 changed files
with
111 additions
and
9 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
51 changes: 51 additions & 0 deletions
51
OpenActive.NET/models/ChangeOfLogisticsLocationSimulateAction.cs
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,51 @@ | ||
|
||
using Newtonsoft.Json; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Runtime.Serialization; | ||
|
||
namespace OpenActive.NET | ||
{ | ||
/// <summary> | ||
/// [NOTICE: This class is part of the Open Booking API Test Interface, and MUST NOT be used in production.] | ||
/// This type is derived from https://schema.org/Action, which means that any of this type's properties within schema.org may also be used. | ||
/// </summary> | ||
[DataContract] | ||
public partial class ChangeOfLogisticsLocationSimulateAction : OpenBookingSimulateAction | ||
{ | ||
/// <summary> | ||
/// Returns the JSON-LD representation of this instance. | ||
/// This method overrides Schema.NET ToString() to serialise using OpenActiveSerializer. | ||
/// </summary> | ||
/// <returns>A <see cref="string" /> that represents the JSON-LD representation of this instance.</returns> | ||
public override string ToString() | ||
{ | ||
return OpenActiveSerializer.Serialize(this); | ||
} | ||
|
||
/// <summary> | ||
/// Returns the JSON-LD representation of this instance, including "https://schema.org" in the "@context". | ||
/// | ||
/// This method must be used when you want to embed the output raw (as-is) into a web | ||
/// page. It uses serializer settings with HTML escaping to avoid Cross-Site Scripting (XSS) | ||
/// vulnerabilities if the object was constructed from an untrusted source. | ||
/// | ||
/// This method overrides Schema.NET ToHtmlEscapedString() to serialise using OpenActiveSerializer. | ||
/// </summary> | ||
/// <returns> | ||
/// A <see cref="string" /> that represents the JSON-LD representation of this instance. | ||
/// </returns> | ||
public new string ToHtmlEscapedString() | ||
{ | ||
return OpenActiveSerializer.SerializeToHtmlEmbeddableString(this); | ||
} | ||
|
||
/// <summary> | ||
/// Gets the name of the type as specified by schema.org. | ||
/// </summary> | ||
[DataMember(Name = "@type", Order = 1)] | ||
public override string Type => "test:ChangeOfLogisticsLocationSimulateAction"; | ||
|
||
|
||
} | ||
} |
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
51 changes: 51 additions & 0 deletions
51
OpenActive.NET/models/ChangeOfLogisticsTimeSimulateAction.cs
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,51 @@ | ||
|
||
using Newtonsoft.Json; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Runtime.Serialization; | ||
|
||
namespace OpenActive.NET | ||
{ | ||
/// <summary> | ||
/// [NOTICE: This class is part of the Open Booking API Test Interface, and MUST NOT be used in production.] | ||
/// This type is derived from https://schema.org/Action, which means that any of this type's properties within schema.org may also be used. | ||
/// </summary> | ||
[DataContract] | ||
public partial class ChangeOfLogisticsTimeSimulateAction : OpenBookingSimulateAction | ||
{ | ||
/// <summary> | ||
/// Returns the JSON-LD representation of this instance. | ||
/// This method overrides Schema.NET ToString() to serialise using OpenActiveSerializer. | ||
/// </summary> | ||
/// <returns>A <see cref="string" /> that represents the JSON-LD representation of this instance.</returns> | ||
public override string ToString() | ||
{ | ||
return OpenActiveSerializer.Serialize(this); | ||
} | ||
|
||
/// <summary> | ||
/// Returns the JSON-LD representation of this instance, including "https://schema.org" in the "@context". | ||
/// | ||
/// This method must be used when you want to embed the output raw (as-is) into a web | ||
/// page. It uses serializer settings with HTML escaping to avoid Cross-Site Scripting (XSS) | ||
/// vulnerabilities if the object was constructed from an untrusted source. | ||
/// | ||
/// This method overrides Schema.NET ToHtmlEscapedString() to serialise using OpenActiveSerializer. | ||
/// </summary> | ||
/// <returns> | ||
/// A <see cref="string" /> that represents the JSON-LD representation of this instance. | ||
/// </returns> | ||
public new string ToHtmlEscapedString() | ||
{ | ||
return OpenActiveSerializer.SerializeToHtmlEmbeddableString(this); | ||
} | ||
|
||
/// <summary> | ||
/// Gets the name of the type as specified by schema.org. | ||
/// </summary> | ||
[DataMember(Name = "@type", Order = 1)] | ||
public override string Type => "test:ChangeOfLogisticsTimeSimulateAction"; | ||
|
||
|
||
} | ||
} |
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