///
/// OnGetLicensePayload.swift
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
/// https://github.com/mrousavy/nitro
/// Copyright © 2025 Marc Rousavy @ Margelo
///

import NitroModules

/**
 * Represents an instance of `OnGetLicensePayload`, backed by a C++ struct.
 */
public typealias OnGetLicensePayload = margelo.nitro.video.OnGetLicensePayload

public extension OnGetLicensePayload {
  private typealias bridge = margelo.nitro.video.bridge.swift

  /**
   * Create a new instance of `OnGetLicensePayload`.
   */
  init(contentId: String, licenseUrl: String, keyUrl: String, spc: String) {
    self.init(std.string(contentId), std.string(licenseUrl), std.string(keyUrl), std.string(spc))
  }

  var contentId: String {
    @inline(__always)
    get {
      return String(self.__contentId)
    }
    @inline(__always)
    set {
      self.__contentId = std.string(newValue)
    }
  }
  
  var licenseUrl: String {
    @inline(__always)
    get {
      return String(self.__licenseUrl)
    }
    @inline(__always)
    set {
      self.__licenseUrl = std.string(newValue)
    }
  }
  
  var keyUrl: String {
    @inline(__always)
    get {
      return String(self.__keyUrl)
    }
    @inline(__always)
    set {
      self.__keyUrl = std.string(newValue)
    }
  }
  
  var spc: String {
    @inline(__always)
    get {
      return String(self.__spc)
    }
    @inline(__always)
    set {
      self.__spc = std.string(newValue)
    }
  }
}
