Sharkey/src/docs/api/entities/note.yaml

191 lines
4.3 KiB
YAML
Raw Normal View History

2018-04-08 02:30:37 +09:00
name: "Note"
desc:
ja: "投稿。"
en: "A note."
props:
2018-07-16 05:47:41 +09:00
id:
2018-04-08 02:30:37 +09:00
type: "id"
optional: false
desc:
ja: "投稿ID"
en: "The ID of this note"
2018-07-16 05:47:41 +09:00
createdAt:
2018-04-08 02:30:37 +09:00
type: "date"
optional: false
desc:
ja: "投稿日時"
en: "The posted date of this note"
2018-07-16 05:47:41 +09:00
viaMobile:
2018-04-08 02:30:37 +09:00
type: "boolean"
optional: true
desc:
ja: "モバイル端末から投稿したか否か(自己申告であることに留意)"
en: "Whether this note sent via a mobile device"
2018-07-16 05:47:41 +09:00
text:
2018-04-08 02:30:37 +09:00
type: "string"
optional: true
desc:
2018-07-06 20:27:48 +09:00
ja: "投稿の本文"
en: "The text of this note"
2018-07-16 05:47:41 +09:00
mediaIds:
2018-04-08 02:30:37 +09:00
type: "id(DriveFile)[]"
optional: true
desc:
ja: "添付されているメディアのID (なければレスポンスでは空配列)"
en: "The IDs of the attached media (empty array for response if no media is attached)"
2018-07-16 05:47:41 +09:00
media:
2018-04-08 02:30:37 +09:00
type: "entity(DriveFile)[]"
optional: true
desc:
ja: "添付されているメディア"
en: "The attached media"
2018-07-16 05:47:41 +09:00
userId:
2018-04-08 02:30:37 +09:00
type: "id(User)"
optional: false
desc:
ja: "投稿者ID"
en: "The ID of author of this note"
2018-07-16 05:47:41 +09:00
user:
2018-04-08 02:30:37 +09:00
type: "entity(User)"
optional: true
desc:
ja: "投稿者"
en: "The author of this note"
2018-07-16 05:47:41 +09:00
myReaction:
2018-04-08 02:30:37 +09:00
type: "string"
optional: true
desc:
ja: "この投稿に対する自分の<a href='/docs/api/reactions'>リアクション</a>"
en: "The your <a href='/docs/api/reactions'>reaction</a> of this note"
2018-07-16 05:47:41 +09:00
reactionCounts:
2018-04-08 02:30:37 +09:00
type: "object"
optional: false
desc:
ja: "<a href='/docs/api/reactions'>リアクション</a>をキーとし、この投稿に対するそのリアクションの数を値としたオブジェクト"
2018-07-16 05:47:41 +09:00
replyId:
2018-04-08 02:30:37 +09:00
type: "id(Note)"
optional: true
desc:
ja: "返信した投稿のID"
en: "The ID of the replyed note"
2018-07-16 05:47:41 +09:00
reply:
2018-04-08 02:30:37 +09:00
type: "entity(Note)"
optional: true
desc:
ja: "返信した投稿"
en: "The replyed note"
2018-07-16 05:47:41 +09:00
renoteId:
2018-04-08 02:30:37 +09:00
type: "id(Note)"
optional: true
desc:
ja: "引用した投稿のID"
en: "The ID of the quoted note"
2018-07-16 05:47:41 +09:00
renote:
2018-04-08 02:30:37 +09:00
type: "entity(Note)"
optional: true
desc:
ja: "引用した投稿"
en: "The quoted note"
2018-07-16 05:47:41 +09:00
poll:
2018-04-08 02:30:37 +09:00
type: "object"
optional: true
desc:
ja: "投票"
en: "The poll"
2018-07-16 05:47:41 +09:00
props:
choices:
2018-04-08 02:30:37 +09:00
type: "object[]"
optional: false
desc:
ja: "投票の選択肢"
en: "The choices of this poll"
2018-07-16 05:47:41 +09:00
props:
id:
2018-04-08 02:30:37 +09:00
type: "number"
optional: false
desc:
ja: "選択肢ID"
en: "The ID of this choice"
2018-07-16 05:47:41 +09:00
isVoted:
2018-04-08 02:30:37 +09:00
type: "boolean"
optional: true
desc:
ja: "自分がこの選択肢に投票したかどうか"
en: "Whether you voted to this choice"
2018-07-16 05:47:41 +09:00
text:
2018-04-08 02:30:37 +09:00
type: "string"
optional: false
desc:
ja: "選択肢本文"
en: "The text of this choice"
2018-07-16 05:47:41 +09:00
votes:
2018-04-08 02:30:37 +09:00
type: "number"
optional: false
desc:
ja: "この選択肢に投票された数"
en: "The number voted for this choice"
2018-07-16 05:47:41 +09:00
geo:
2018-04-08 02:30:37 +09:00
type: "object"
optional: true
desc:
ja: "位置情報"
en: "Geo location"
2018-07-16 05:47:41 +09:00
props:
coordinates:
2018-04-08 02:30:37 +09:00
type: "number[]"
optional: false
desc:
ja: "座標。最初に経度:-180〜180で表す。最後に緯度-90〜90で表す。"
2018-07-16 05:47:41 +09:00
altitude:
2018-04-08 02:30:37 +09:00
type: "number"
optional: false
desc:
ja: "高度。メートル単位で表す。"
2018-07-16 05:47:41 +09:00
accuracy:
2018-04-08 02:30:37 +09:00
type: "number"
optional: false
desc:
ja: "緯度、経度の精度。メートル単位で表す。"
2018-07-16 05:47:41 +09:00
altitudeAccuracy:
2018-04-08 02:30:37 +09:00
type: "number"
optional: false
desc:
ja: "高度の精度。メートル単位で表す。"
2018-07-16 05:47:41 +09:00
heading:
2018-04-08 02:30:37 +09:00
type: "number"
optional: false
desc:
ja: "方角。0〜360の角度で表す。0が北、90が東、180が南、270が西。"
2018-07-16 05:47:41 +09:00
speed:
2018-04-08 02:30:37 +09:00
type: "number"
optional: false
desc:
ja: "速度。メートル / 秒数で表す。"