-
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.
- Loading branch information
1 parent
3fe60bf
commit 0a583be
Showing
4 changed files
with
56 additions
and
4 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,48 @@ | ||
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 AttendeeAttendedSimulateAction : 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:AttendeeAttendedSimulateAction"; | ||
} | ||
} |