Class MainCommandResponse

Generated

from message moosync.types.MainCommandResponse

Hierarchy (view full)

Constructors

Properties

response: {
    case: "getSong";
    value: GetSongResponse;
} | {
    case: "getEntity";
    value: GetEntityResponse;
} | {
    case: "getCurrentSong";
    value: GetCurrentSongResponse;
} | {
    case: "getPlayerState";
    value: GetPlayerStateResponse;
} | {
    case: "getVolume";
    value: GetVolumeResponse;
} | {
    case: "getTime";
    value: GetTimeResponse;
} | {
    case: "getQueue";
    value: GetQueueResponse;
} | {
    case: "getPreference";
    value: GetPreferenceResponse;
} | {
    case: "setPreference";
    value: SetPreferenceResponse;
} | {
    case: "getSecure";
    value: GetSecureResponse;
} | {
    case: "setSecure";
    value: SetSecureResponse;
} | {
    case: "addSongs";
    value: AddSongsResponse;
} | {
    case: "removeSong";
    value: RemoveSongResponse;
} | {
    case: "updateSong";
    value: UpdateSongResponse;
} | {
    case: "addPlaylist";
    value: AddPlaylistResponse;
} | {
    case: "addToPlaylist";
    value: AddToPlaylistResponse;
} | {
    case: "registerOauth";
    value: RegisterOauthResponse;
} | {
    case: "openExternalUrl";
    value: OpenExternalUrlResponse;
} | {
    case: "updateAccounts";
    value: UpdateAccountsResponse;
} | {
    case: "registerUserPreference";
    value: RegisterUserPreferenceResponse;
} | {
    case: "unregisterUserPreference";
    value: UnregisterUserPreferenceResponse;
} | {
    case: "extensionsUpdated";
    value: ExtensionsUpdatedResponse;
} | {
    case: "getAppVersion";
    value: GetAppVersionResponse;
} | {
    case: "error";
    value: Error;
} | {
    case: undefined;
    value?: undefined;
}

Type declaration

  • case: "getSong"
  • value: GetSongResponse

    Generated

    from field: moosync.types.GetSongResponse get_song = 1;

Type declaration

  • case: "getEntity"
  • value: GetEntityResponse

    Generated

    from field: moosync.types.GetEntityResponse get_entity = 2;

Type declaration

  • case: "getCurrentSong"
  • value: GetCurrentSongResponse

    Generated

    from field: moosync.types.GetCurrentSongResponse get_current_song = 3;

Type declaration

  • case: "getPlayerState"
  • value: GetPlayerStateResponse

    Generated

    from field: moosync.types.GetPlayerStateResponse get_player_state = 4;

Type declaration

  • case: "getVolume"
  • value: GetVolumeResponse

    Generated

    from field: moosync.types.GetVolumeResponse get_volume = 5;

Type declaration

  • case: "getTime"
  • value: GetTimeResponse

    Generated

    from field: moosync.types.GetTimeResponse get_time = 6;

Type declaration

  • case: "getQueue"
  • value: GetQueueResponse

    Generated

    from field: moosync.types.GetQueueResponse get_queue = 7;

Type declaration

  • case: "getPreference"
  • value: GetPreferenceResponse

    Generated

    from field: moosync.types.GetPreferenceResponse get_preference = 8;

Type declaration

  • case: "setPreference"
  • value: SetPreferenceResponse

    Generated

    from field: moosync.types.SetPreferenceResponse set_preference = 9;

Type declaration

  • case: "getSecure"
  • value: GetSecureResponse

    Generated

    from field: moosync.types.GetSecureResponse get_secure = 10;

Type declaration

  • case: "setSecure"
  • value: SetSecureResponse

    Generated

    from field: moosync.types.SetSecureResponse set_secure = 11;

Type declaration

  • case: "addSongs"
  • value: AddSongsResponse

    Generated

    from field: moosync.types.AddSongsResponse add_songs = 12;

Type declaration

  • case: "removeSong"
  • value: RemoveSongResponse

    Generated

    from field: moosync.types.RemoveSongResponse remove_song = 13;

Type declaration

  • case: "updateSong"
  • value: UpdateSongResponse

    Generated

    from field: moosync.types.UpdateSongResponse update_song = 14;

Type declaration

  • case: "addPlaylist"
  • value: AddPlaylistResponse

    Generated

    from field: moosync.types.AddPlaylistResponse add_playlist = 15;

Type declaration

  • case: "addToPlaylist"
  • value: AddToPlaylistResponse

    Generated

    from field: moosync.types.AddToPlaylistResponse add_to_playlist = 16;

Type declaration

  • case: "registerOauth"
  • value: RegisterOauthResponse

    Generated

    from field: moosync.types.RegisterOauthResponse register_oauth = 17;

Type declaration

  • case: "openExternalUrl"
  • value: OpenExternalUrlResponse

    Generated

    from field: moosync.types.OpenExternalUrlResponse open_external_url = 18;

Type declaration

  • case: "updateAccounts"
  • value: UpdateAccountsResponse

    Generated

    from field: moosync.types.UpdateAccountsResponse update_accounts = 19;

Type declaration

  • case: "registerUserPreference"
  • value: RegisterUserPreferenceResponse

    Generated

    from field: moosync.types.RegisterUserPreferenceResponse register_user_preference = 20;

Type declaration

  • case: "unregisterUserPreference"
  • value: UnregisterUserPreferenceResponse

    Generated

    from field: moosync.types.UnregisterUserPreferenceResponse unregister_user_preference = 21;

Type declaration

  • case: "extensionsUpdated"
  • value: ExtensionsUpdatedResponse

    Generated

    from field: moosync.types.ExtensionsUpdatedResponse extensions_updated = 22;

Type declaration

  • case: "getAppVersion"
  • value: GetAppVersionResponse

    Generated

    from field: moosync.types.GetAppVersionResponse get_app_version = 23;

Type declaration

  • case: "error"
  • value: Error

    Generated

    from field: moosync.types.Error error = 24;

Type declaration

  • case: undefined
  • Optional value?: undefined

Generated

from oneof moosync.types.MainCommandResponse.response

fields: FieldList
runtime: ProtoRuntime
typeName: "moosync.types.MainCommandResponse" = "moosync.types.MainCommandResponse"

Methods

  • Compare with a message of the same type. Note that this function disregards extensions and unknown fields.

    Returns boolean

  • Parse from binary data, merging fields.

    Repeated fields are appended. Map entries are added, overwriting existing keys.

    If a message field is already present, it will be merged with the new data.

    Parameters

    Returns this

  • Parse a message from a JSON value.

    Parameters

    Returns this

  • Parse a message from a JSON string.

    Parameters

    Returns this

  • Retrieve the MessageType of this message - a singleton that represents the protobuf message declaration and provides metadata for reflection- based operations.

    Returns MessageType<MainCommandResponse>

  • Serialize the message to binary data.

    Parameters

    Returns Uint8Array

  • Override for serialization behavior. This will be invoked when calling JSON.stringify on this message (i.e. JSON.stringify(msg)).

    Note that this will not serialize google.protobuf.Any with a packed message because the protobuf JSON format specifies that it needs to be unpacked, and this is only possible with a type registry to look up the message type. As a result, attempting to serialize a message with this type will throw an Error.

    This method is protected because you should not need to invoke it directly -- instead use JSON.stringify or toJsonString for stringified JSON. Alternatively, if actual JSON is desired, you should use toJson.

    Returns JsonValue

  • Serialize the message to a JSON value, a JavaScript value that can be passed to JSON.stringify().

    Parameters

    Returns JsonValue

  • Serialize the message to a JSON string.

    Parameters

    Returns string