struct ACP::Protocol::Annotations

Overview

Optional annotations for content blocks. The client can use annotations to inform how objects are used or displayed.

Included Modules

Defined in:

acp/protocol/content_block.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(audience : Array(String) | Nil = nil, last_modified : String | Nil = nil, priority : Float64 | Nil = nil, meta : Hash(String, JSON::Any) | Nil = nil) #

[View source]

Instance Method Detail

def audience : Array(String) | Nil #

Describes who the intended audience of this content is.


[View source]
def audience=(audience : Array(String) | Nil) #

Describes who the intended audience of this content is.


[View source]
def last_modified : String | Nil #

An ISO 8601 datetime string indicating when the content was last modified.


[View source]
def last_modified=(last_modified : String | Nil) #

An ISO 8601 datetime string indicating when the content was last modified.


[View source]
def meta : Hash(String, JSON::Any) | Nil #

Extension metadata.


[View source]
def meta=(meta : Hash(String, JSON::Any) | Nil) #

Extension metadata.


[View source]
def priority : Float64 | Nil #

A priority hint for the content (0.0 to 1.0).


[View source]
def priority=(priority : Float64 | Nil) #

A priority hint for the content (0.0 to 1.0).


[View source]