Wolfringo Wolfringo
Wolfringo Wolfringo
Wolfringo (c) 2020 TehGM
DocFX, DiscordFX theme.
Search Results for

    Class UrlMetadataMessage

    A message for requesting metadata about a link as seen by WOLF servers.

    Inheritance
    System.Object
    UrlMetadataMessage
    Implements
    IHeadersWolfMessage
    IWolfMessage
    Namespace: TehGM.Wolfringo.Messages
    Assembly: Wolfringo.Core.dll
    Syntax
    [ResponseType(typeof(UrlMetadataResponse))]
    public class UrlMetadataMessage : IHeadersWolfMessage, IWolfMessage
    Remarks

    Uses UrlMetadataResponse as response type.

    Constructors

    | Improve this Doc View Source

    UrlMetadataMessage()

    Creates a message instance.

    Declaration
    [JsonConstructor]
    protected UrlMetadataMessage()
    | Improve this Doc View Source

    UrlMetadataMessage(String)

    Creates a message instance.

    Declaration
    public UrlMetadataMessage(string url)
    Parameters
    Type Name Description
    System.String url

    URL to request the metadata of.

    Exceptions
    Type Condition
    System.ArgumentNullException

    URL is null.

    System.ArgumentException

    URL is empty, whitespace, or otherwise invalid.

    Properties

    | Improve this Doc View Source

    EventName

    Message event name.

    Declaration
    [JsonIgnore]
    public string EventName { get; }
    Property Value
    Type Description
    System.String
    Remarks

    Equals to MetadataUrl.

    | Improve this Doc View Source

    Headers

    Message payload headers.

    Declaration
    [JsonIgnore]
    public IDictionary<string, object> Headers { get; }
    Property Value
    Type Description
    System.Collections.Generic.IDictionary<System.String, System.Object>
    | Improve this Doc View Source

    URL

    URL to request the metadata of.

    Declaration
    [JsonProperty("url")]
    public string URL { get; }
    Property Value
    Type Description
    System.String

    Implements

    IHeadersWolfMessage
    IWolfMessage

    Extension Methods

    SerializationHelper.SerializeJsonPayload<T>(T, JsonSerializer)