mirror of
https://github.com/LukeHagar/plexgo.git
synced 2025-12-09 12:37:46 +00:00
## Go SDK Changes:
* `PlexApi.LibraryPlaylists.AddPlaylistItems()`: `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.Hubs.GetMetadataHubs()`: * `request.Request.OnlyTransient` **Changed** * `response.MediaContainer.Hub.[].Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.LibraryCollections.MoveCollectionItem()`: `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.LibraryCollections.DeleteCollectionItem()`: `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.LibraryCollections.AddCollectionItems()`: `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.Content.GetSonicallySimilar()`: `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.Butler.StopTask()`: `request.Request` **Changed** **Breaking** ⚠️ * `PlexApi.Butler.StartTask()`: `request.Request` **Changed** **Breaking** ⚠️ * `PlexApi.Content.GetSonicPath()`: `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.DownloadQueue.GetItemDecision()`: `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.Hubs.GetAllHubs()`: * `request.Request.OnlyTransient` **Changed** * `response.MediaContainer.Hub.[].Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.Hubs.GetContinueWatching()`: `response.MediaContainer.Hub.[].Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.Hubs.GetPromotedHubs()`: `response.MediaContainer.Hub.[].Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.Content.GetAllLeaves()`: `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.Hubs.GetPostplayHubs()`: * `request.Request.OnlyTransient` **Changed** * `response.MediaContainer.Hub.[].Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.Hubs.GetRelatedHubs()`: * `request.Request.OnlyTransient` **Changed** * `response.MediaContainer.Hub.[].Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.Hubs.GetSectionHubs()`: * `request.Request.OnlyTransient` **Changed** * `response.MediaContainer.Hub.[].Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.Content.ListContent()`: * `request.Request` **Changed** * `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.Content.GetAlbums()`: `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.Search.SearchHubs()`: `response.MediaContainer.Hub.[].Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.Search.VoiceSearchHubs()`: * `request.Request.Type` **Changed** **Breaking** ⚠️ * `response.MediaContainer.Hub.[].Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.Library.GetLibraryItems()`: * `request.Request.MediaQuery` **Changed** * `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.Library.IngestTransientItem()`: * `request.Request` **Changed** * `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.Library.GetLibraryMatches()`: * `request.Request` **Changed** **Breaking** ⚠️ * `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.Content.GetMetadataItem()`: * `request.Request` **Changed** * `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.Library.GetSections()`: `response.MediaContainer.Directory.[]` **Changed** **Breaking** ⚠️ * `PlexApi.Library.AddSection()`: * `request.Request` **Changed** * `response.MediaContainer.Directory.[]` **Changed** **Breaking** ⚠️ * `PlexApi.Library.GetTags()`: * `request.Request.Type` **Changed** **Breaking** ⚠️ * `PlexApi.Content.GetCollectionItems()`: `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.Library.GetAllItemLeaves()`: `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.Status.ListSessions()`: `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.PlayQueue.MovePlayQueueItem()`: `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.Library.GetExtras()`: `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.PlayQueue.DeletePlayQueueItem()`: `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.PlayQueue.Unshuffle()`: `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.Library.ListMatches()`: * `request.Request.Manual` **Changed** * `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.Library.ListSonicallySimilar()`: `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.PlayQueue.ResetPlayQueue()`: `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.Library.GetRelatedItems()`: `response.MediaContainer.Hub.[].Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.Library.ListSimilar()`: `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.PlayQueue.ClearPlayQueue()`: `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.Library.GetItemTree()`: `response.MediaContainer.MetadataItem.[]` **Changed** **Breaking** ⚠️ * `PlexApi.PlayQueue.AddToPlayQueue()`: * `request.Request.Next` **Changed** * `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.PlayQueue.GetPlayQueue()`: * `request.Request` **Changed** * `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.LibraryPlaylists.MovePlaylistItem()`: `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.Library.GetPerson()`: `response.MediaContainer.Directory.[]` **Changed** **Breaking** ⚠️ * `PlexApi.Library.ListPersonMedia()`: `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.LibraryPlaylists.GetPlaylistGeneratorItems()`: `response.MediaContainer.Metadata` **Changed** **Breaking** ⚠️ * `PlexApi.Library.GetLibraryDetails()`: * `request.Request.IncludeDetails` **Changed** * `response.MediaContainer.Directory.[]` **Changed** **Breaking** ⚠️ * `PlexApi.LibraryPlaylists.ModifyPlaylistGenerator()`: * `request.Request.Item` **Changed** * `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.Library.Autocomplete()`: * `request.Request.MediaQuery` **Changed** * `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.Library.GetCollections()`: * `request.Request.MediaQuery` **Changed** * `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.Library.GetCommon()`: * `request.Request.MediaQuery` **Changed** * `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.LibraryPlaylists.DeletePlaylistItem()`: `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.LibraryPlaylists.ClearPlaylistItems()`: `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.PlayQueue.Shuffle()`: `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.LibraryPlaylists.CreatePlaylist()`: `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.Playlist.GetPlaylistItems()`: `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.Playlist.GetPlaylist()`: `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.Collections.CreateCollection()`: * `request.Request.Type` **Changed** **Breaking** ⚠️ * `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.DvRs.TuneChannel()`: `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.LiveTv.GetSessions()`: `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.LiveTv.GetLiveTvSession()`: `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.Playlist.ListPlaylists()`: `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.Subscriptions.GetAllSubscriptions()`: * `request.Request` **Changed** * `response.MediaContainer.MediaSubscription.[].MediaGrabOperation.[].Metadata` **Changed** **Breaking** ⚠️ * `PlexApi.Subscriptions.CreateSubscription()`: `response.MediaContainer.MediaSubscription.[].MediaGrabOperation.[].Metadata` **Changed** **Breaking** ⚠️ * `PlexApi.Subscriptions.GetScheduledRecordings()`: `response.MediaContainer.MediaGrabOperation.[].Metadata` **Changed** **Breaking** ⚠️ * `PlexApi.Subscriptions.GetTemplate()`: `response.MediaContainer.SubscriptionTemplate.[].MediaSubscription.[].MediaGrabOperation.[].Metadata` **Changed** **Breaking** ⚠️ * `PlexApi.Subscriptions.GetSubscription()`: * `request.Request` **Changed** * `response.MediaContainer.MediaSubscription.[].MediaGrabOperation.[].Metadata` **Changed** **Breaking** ⚠️ * `PlexApi.Subscriptions.EditSubscriptionPreferences()`: `response.MediaContainer.MediaSubscription.[].MediaGrabOperation.[].Metadata` **Changed** **Breaking** ⚠️ * `PlexApi.Subscriptions.ReorderSubscription()`: `response.MediaContainer.MediaSubscription.[].MediaGrabOperation.[].Metadata` **Changed** **Breaking** ⚠️ * `PlexApi.Transcoder.MakeDecision()`: * `request.Request` **Changed** * `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️ * `PlexApi.Library.RefreshItemsMetadata()`: * `request.Request.MarkUpdated` **Changed** * `PlexApi.Authentication.Post-Users-Sign-In-Data()`: **Added** * `PlexApi.Transcoder.StartTranscodeSession()`: `request.Request` **Changed** * `PlexApi.Devices.ModifyDevice()`: * `request.Request.Enabled` **Changed** * `PlexApi.Library.GetMediaPart()`: * `request.Request.Download` **Changed** * `PlexApi.Library.DetectIntros()`: * `request.Request.Force` **Changed** * `PlexApi.Library.RefreshSection()`: * `request.Request.Force` **Changed** * `PlexApi.LibraryPlaylists.UploadPlaylist()`: * `request.Request.Force` **Changed** * `PlexApi.Library.DeleteMediaItem()`: * `request.Request.Proxy` **Changed** * `PlexApi.Authentication.GetTokenDetails()`: **Added** * `PlexApi.Library.GetFirstCharacters()`: * `request.Request.MediaQuery` **Changed** * `PlexApi.Library.UpdateItems()`: * `request.Request.Field.locked` **Changed** * `PlexApi.Library.DeleteLibrarySection()`: * `request.Request.Async` **Changed** * `PlexApi.Library.SetStreamSelection()`: * `request.Request.AllParts` **Changed** * `PlexApi.PlayQueue.CreatePlayQueue()`: `request.Request` **Changed** * `PlexApi.Library.GetAugmentationStatus()`: * `request.Request.Wait` **Changed** * `PlexApi.Library.DetectVoiceActivity()`: `request.Request` **Changed** * `PlexApi.Transcoder.TranscodeImage()`: `request.Request` **Changed** * `PlexApi.Transcoder.TranscodeSubtitles()`: `request.Request` **Changed** * `PlexApi.Library.AddSubtitles()`: `request.Request` **Changed** * `PlexApi.Library.GetStream()`: * `request.Request.AutoAdjustSubtitle` **Changed** * `PlexApi.Library.StartBifGeneration()`: * `request.Request.Force` **Changed** * `PlexApi.Library.DetectCredits()`: `request.Request` **Changed** * `PlexApi.UltraBlur.GetImage()`: * `request.Request.Noise` **Changed** * `PlexApi.Library.GenerateThumbs()`: * `request.Request.Force` **Changed** * `PlexApi.Updater.ApplyUpdates()`: `request.Request` **Changed** * `PlexApi.Updater.CheckUpdates()`: * `request.Request.Download` **Changed** * `PlexApi.Library.DeleteMetadataItem()`: * `request.Request.Proxy` **Changed** * `PlexApi.Library.OptimizeDatabase()`: * `request.Request.Async` **Changed** * `PlexApi.Hubs.UpdateHubVisibility()`: `request.Request` **Changed** * `PlexApi.Hubs.CreateCustomHub()`: `request.Request` **Changed** * `PlexApi.Library.GetSectionImage()`: * `request.Request.MediaQuery` **Changed** * `PlexApi.DownloadQueue.AddDownloadQueueItems()`: `request.Request` **Changed** * `PlexApi.Timeline.Report()`: `request.Request` **Changed** * `PlexApi.General.GetSourceConnectionInformation()`: * `request.Request.Refresh` **Changed** * `PlexApi.Plex.Get-Server-Resources()`: **Added** * `PlexApi.Users.Get-Users()`: **Added**
This commit is contained in:
310
models/components/plexdevice.go
Normal file
310
models/components/plexdevice.go
Normal file
@@ -0,0 +1,310 @@
|
||||
// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
|
||||
package components
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"github.com/LukeHagar/plexgo/internal/utils"
|
||||
"time"
|
||||
)
|
||||
|
||||
// PlexDeviceProtocol - The protocol used for the connection (http, https, etc)
|
||||
type PlexDeviceProtocol string
|
||||
|
||||
const (
|
||||
PlexDeviceProtocolHTTP PlexDeviceProtocol = "http"
|
||||
PlexDeviceProtocolHTTPS PlexDeviceProtocol = "https"
|
||||
)
|
||||
|
||||
func (e PlexDeviceProtocol) ToPointer() *PlexDeviceProtocol {
|
||||
return &e
|
||||
}
|
||||
func (e *PlexDeviceProtocol) UnmarshalJSON(data []byte) error {
|
||||
var v string
|
||||
if err := json.Unmarshal(data, &v); err != nil {
|
||||
return err
|
||||
}
|
||||
switch v {
|
||||
case "http":
|
||||
fallthrough
|
||||
case "https":
|
||||
*e = PlexDeviceProtocol(v)
|
||||
return nil
|
||||
default:
|
||||
return fmt.Errorf("invalid value for PlexDeviceProtocol: %v", v)
|
||||
}
|
||||
}
|
||||
|
||||
type Connections struct {
|
||||
// The protocol used for the connection (http, https, etc)
|
||||
Protocol PlexDeviceProtocol `json:"protocol"`
|
||||
// The (ip) address or domain name used for the connection
|
||||
Address string `json:"address"`
|
||||
// The port used for the connection
|
||||
Port int `json:"port"`
|
||||
// The full URI of the connection
|
||||
URI string `json:"uri"`
|
||||
// If the connection is local address
|
||||
Local bool `json:"local"`
|
||||
// If the connection is relayed through plex.direct
|
||||
Relay bool `json:"relay"`
|
||||
// If the connection is using IPv6
|
||||
IPv6 bool `json:"IPv6"`
|
||||
}
|
||||
|
||||
func (c *Connections) GetProtocol() PlexDeviceProtocol {
|
||||
if c == nil {
|
||||
return PlexDeviceProtocol("")
|
||||
}
|
||||
return c.Protocol
|
||||
}
|
||||
|
||||
func (c *Connections) GetAddress() string {
|
||||
if c == nil {
|
||||
return ""
|
||||
}
|
||||
return c.Address
|
||||
}
|
||||
|
||||
func (c *Connections) GetPort() int {
|
||||
if c == nil {
|
||||
return 0
|
||||
}
|
||||
return c.Port
|
||||
}
|
||||
|
||||
func (c *Connections) GetURI() string {
|
||||
if c == nil {
|
||||
return ""
|
||||
}
|
||||
return c.URI
|
||||
}
|
||||
|
||||
func (c *Connections) GetLocal() bool {
|
||||
if c == nil {
|
||||
return false
|
||||
}
|
||||
return c.Local
|
||||
}
|
||||
|
||||
func (c *Connections) GetRelay() bool {
|
||||
if c == nil {
|
||||
return false
|
||||
}
|
||||
return c.Relay
|
||||
}
|
||||
|
||||
func (c *Connections) GetIPv6() bool {
|
||||
if c == nil {
|
||||
return false
|
||||
}
|
||||
return c.IPv6
|
||||
}
|
||||
|
||||
type PlexDevice struct {
|
||||
Name string `json:"name"`
|
||||
Product string `json:"product"`
|
||||
ProductVersion string `json:"productVersion"`
|
||||
Platform *string `json:"platform"`
|
||||
PlatformVersion *string `json:"platformVersion"`
|
||||
Device *string `json:"device"`
|
||||
ClientIdentifier string `json:"clientIdentifier"`
|
||||
CreatedAt time.Time `json:"createdAt"`
|
||||
LastSeenAt time.Time `json:"lastSeenAt"`
|
||||
Provides string `json:"provides"`
|
||||
// ownerId is null when the device is owned by the token used to send the request
|
||||
OwnerID *int64 `json:"ownerId"`
|
||||
SourceTitle *string `json:"sourceTitle"`
|
||||
PublicAddress string `json:"publicAddress"`
|
||||
AccessToken string `json:"accessToken"`
|
||||
Owned bool `json:"owned"`
|
||||
Home bool `json:"home"`
|
||||
Synced bool `json:"synced"`
|
||||
Relay bool `json:"relay"`
|
||||
Presence bool `json:"presence"`
|
||||
HTTPSRequired bool `json:"httpsRequired"`
|
||||
PublicAddressMatches bool `json:"publicAddressMatches"`
|
||||
DNSRebindingProtection bool `json:"dnsRebindingProtection"`
|
||||
NatLoopbackSupported bool `json:"natLoopbackSupported"`
|
||||
Connections []Connections `json:"connections"`
|
||||
}
|
||||
|
||||
func (p PlexDevice) MarshalJSON() ([]byte, error) {
|
||||
return utils.MarshalJSON(p, "", false)
|
||||
}
|
||||
|
||||
func (p *PlexDevice) UnmarshalJSON(data []byte) error {
|
||||
if err := utils.UnmarshalJSON(data, &p, "", false, []string{"name", "product", "productVersion", "clientIdentifier", "createdAt", "lastSeenAt", "provides", "publicAddress", "accessToken", "owned", "home", "synced", "relay", "presence", "httpsRequired", "publicAddressMatches", "dnsRebindingProtection", "natLoopbackSupported", "connections"}); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (p *PlexDevice) GetName() string {
|
||||
if p == nil {
|
||||
return ""
|
||||
}
|
||||
return p.Name
|
||||
}
|
||||
|
||||
func (p *PlexDevice) GetProduct() string {
|
||||
if p == nil {
|
||||
return ""
|
||||
}
|
||||
return p.Product
|
||||
}
|
||||
|
||||
func (p *PlexDevice) GetProductVersion() string {
|
||||
if p == nil {
|
||||
return ""
|
||||
}
|
||||
return p.ProductVersion
|
||||
}
|
||||
|
||||
func (p *PlexDevice) GetPlatform() *string {
|
||||
if p == nil {
|
||||
return nil
|
||||
}
|
||||
return p.Platform
|
||||
}
|
||||
|
||||
func (p *PlexDevice) GetPlatformVersion() *string {
|
||||
if p == nil {
|
||||
return nil
|
||||
}
|
||||
return p.PlatformVersion
|
||||
}
|
||||
|
||||
func (p *PlexDevice) GetDevice() *string {
|
||||
if p == nil {
|
||||
return nil
|
||||
}
|
||||
return p.Device
|
||||
}
|
||||
|
||||
func (p *PlexDevice) GetClientIdentifier() string {
|
||||
if p == nil {
|
||||
return ""
|
||||
}
|
||||
return p.ClientIdentifier
|
||||
}
|
||||
|
||||
func (p *PlexDevice) GetCreatedAt() time.Time {
|
||||
if p == nil {
|
||||
return time.Time{}
|
||||
}
|
||||
return p.CreatedAt
|
||||
}
|
||||
|
||||
func (p *PlexDevice) GetLastSeenAt() time.Time {
|
||||
if p == nil {
|
||||
return time.Time{}
|
||||
}
|
||||
return p.LastSeenAt
|
||||
}
|
||||
|
||||
func (p *PlexDevice) GetProvides() string {
|
||||
if p == nil {
|
||||
return ""
|
||||
}
|
||||
return p.Provides
|
||||
}
|
||||
|
||||
func (p *PlexDevice) GetOwnerID() *int64 {
|
||||
if p == nil {
|
||||
return nil
|
||||
}
|
||||
return p.OwnerID
|
||||
}
|
||||
|
||||
func (p *PlexDevice) GetSourceTitle() *string {
|
||||
if p == nil {
|
||||
return nil
|
||||
}
|
||||
return p.SourceTitle
|
||||
}
|
||||
|
||||
func (p *PlexDevice) GetPublicAddress() string {
|
||||
if p == nil {
|
||||
return ""
|
||||
}
|
||||
return p.PublicAddress
|
||||
}
|
||||
|
||||
func (p *PlexDevice) GetAccessToken() string {
|
||||
if p == nil {
|
||||
return ""
|
||||
}
|
||||
return p.AccessToken
|
||||
}
|
||||
|
||||
func (p *PlexDevice) GetOwned() bool {
|
||||
if p == nil {
|
||||
return false
|
||||
}
|
||||
return p.Owned
|
||||
}
|
||||
|
||||
func (p *PlexDevice) GetHome() bool {
|
||||
if p == nil {
|
||||
return false
|
||||
}
|
||||
return p.Home
|
||||
}
|
||||
|
||||
func (p *PlexDevice) GetSynced() bool {
|
||||
if p == nil {
|
||||
return false
|
||||
}
|
||||
return p.Synced
|
||||
}
|
||||
|
||||
func (p *PlexDevice) GetRelay() bool {
|
||||
if p == nil {
|
||||
return false
|
||||
}
|
||||
return p.Relay
|
||||
}
|
||||
|
||||
func (p *PlexDevice) GetPresence() bool {
|
||||
if p == nil {
|
||||
return false
|
||||
}
|
||||
return p.Presence
|
||||
}
|
||||
|
||||
func (p *PlexDevice) GetHTTPSRequired() bool {
|
||||
if p == nil {
|
||||
return false
|
||||
}
|
||||
return p.HTTPSRequired
|
||||
}
|
||||
|
||||
func (p *PlexDevice) GetPublicAddressMatches() bool {
|
||||
if p == nil {
|
||||
return false
|
||||
}
|
||||
return p.PublicAddressMatches
|
||||
}
|
||||
|
||||
func (p *PlexDevice) GetDNSRebindingProtection() bool {
|
||||
if p == nil {
|
||||
return false
|
||||
}
|
||||
return p.DNSRebindingProtection
|
||||
}
|
||||
|
||||
func (p *PlexDevice) GetNatLoopbackSupported() bool {
|
||||
if p == nil {
|
||||
return false
|
||||
}
|
||||
return p.NatLoopbackSupported
|
||||
}
|
||||
|
||||
func (p *PlexDevice) GetConnections() []Connections {
|
||||
if p == nil {
|
||||
return []Connections{}
|
||||
}
|
||||
return p.Connections
|
||||
}
|
||||
Reference in New Issue
Block a user