|
| 1 | +using Newtonsoft.Json; |
| 2 | +using System; |
| 3 | +using System.Collections.Generic; |
| 4 | +using System.Runtime.Serialization; |
| 5 | + |
| 6 | +namespace OpenActive.NET |
| 7 | +{ |
| 8 | + /// <summary> |
| 9 | + /// [NOTICE: This class is part of the Open Booking API Test Interface, and MUST NOT be used in production.] |
| 10 | + /// 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. |
| 11 | + /// </summary> |
| 12 | + [DataContract] |
| 13 | + public partial class AttendeeAttendedSimulateAction : OpenBookingSimulateAction |
| 14 | + { |
| 15 | + /// <summary> |
| 16 | + /// Returns the JSON-LD representation of this instance. |
| 17 | + /// This method overrides Schema.NET ToString() to serialise using OpenActiveSerializer. |
| 18 | + /// </summary> |
| 19 | + /// <returns>A <see cref="string" /> that represents the JSON-LD representation of this instance.</returns> |
| 20 | + public override string ToString() |
| 21 | + { |
| 22 | + return OpenActiveSerializer.Serialize(this); |
| 23 | + } |
| 24 | + |
| 25 | + /// <summary> |
| 26 | + /// Returns the JSON-LD representation of this instance, including "https://schema.org" in the "@context". |
| 27 | + /// |
| 28 | + /// This method must be used when you want to embed the output raw (as-is) into a web |
| 29 | + /// page. It uses serializer settings with HTML escaping to avoid Cross-Site Scripting (XSS) |
| 30 | + /// vulnerabilities if the object was constructed from an untrusted source. |
| 31 | + /// |
| 32 | + /// This method overrides Schema.NET ToHtmlEscapedString() to serialise using OpenActiveSerializer. |
| 33 | + /// </summary> |
| 34 | + /// <returns> |
| 35 | + /// A <see cref="string" /> that represents the JSON-LD representation of this instance. |
| 36 | + /// </returns> |
| 37 | + public new string ToHtmlEscapedString() |
| 38 | + { |
| 39 | + return OpenActiveSerializer.SerializeToHtmlEmbeddableString(this); |
| 40 | + } |
| 41 | + |
| 42 | + /// <summary> |
| 43 | + /// Gets the name of the type as specified by schema.org. |
| 44 | + /// </summary> |
| 45 | + [DataMember(Name = "@type", Order = 1)] |
| 46 | + public override string Type => "test:AttendeeAttendedSimulateAction"; |
| 47 | + } |
| 48 | +} |
0 commit comments