Skip to content

Model VideoMessageContent not fit to the document #568

@alex-lx

Description

@alex-lx

Model in the SDK:

public class VideoMessageContent implements MessageContent {
@JsonPOJOBuilder(withPrefix = "")
public static class VideoMessageContentBuilder {
// Providing builder instead of public constructor. Class body is filled by lombok.
}
String id;
URI url;
ContentProvider contentProvider;

Model in the document:
https://developers.line.biz/en/reference/messaging-api/#wh-video

  {
    "id": "325708",
    "type": "video",
    "duration": 60000,
    "contentProvider": {
      "type": "external",
      "originalContentUrl": "https://example.com/original.mp4",
      "previewImageUrl": "https://example.com/preview.jpg"
    }
  }

In SDK, the model has no duration field and has one extra url field.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions