Skip to content

Commit

Permalink
Merge pull request #14 from carlosmn/cmn/registration-plugin-info
Browse files Browse the repository at this point in the history
Add plugin info to RegistrationInfo
  • Loading branch information
mdonoughe authored Oct 8, 2023
2 parents 8058d5d + 0dd99ec commit eab067c
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/registration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,18 @@ pub struct RegistrationInfoApplication {
pub version: String,
}

/// Information about the plugin
///
/// [Official Documentation](https://developer.elgato.com/documentation/stream-deck/sdk/registration-procedure/#info-parameter)
#[derive(Serialize, Deserialize, Debug, Clone)]
#[serde(rename_all = "camelCase")]
pub struct RegistrationInfoPlugin {
/// Version of the plugin as per the manifest
pub version: String,
/// Unique identifier of the plugin
pub uuid: String,
}

/// The user's preferred colors
#[derive(Deserialize, Serialize, Debug)]
#[serde(rename_all = "camelCase")]
Expand All @@ -141,6 +153,7 @@ pub struct UserColors {
#[serde(rename_all = "camelCase")]
pub struct RegistrationInfo {
pub application: RegistrationInfoApplication,
pub plugin: RegistrationInfoPlugin,
pub device_pixel_ratio: u8,
pub devices: Vec<RegistrationInfoDevice>,
pub colors: UserColors,
Expand Down

0 comments on commit eab067c

Please sign in to comment.