Skip to content

Commit

Permalink
added new methods
Browse files Browse the repository at this point in the history
	GetDeviceID() string
	GetHType() string
  • Loading branch information
Allan-Nava authored Feb 7, 2023
1 parent c823669 commit c166287
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions haivision/haivision.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ type IHaivisionClient interface {
//
HealthCheck() error
IsDebug() bool
GetDeviceID() string
GetHType() string
// auth stuff
InitSession(username string, password string) (*session.BaseResponseInitSession, error)
GetSessionInfo() (*session.ResponseSessionInfo, error)
Expand Down Expand Up @@ -71,6 +73,14 @@ func (o *haivisionSdk) IsDebug() bool {
return o.debug
}

func (o *haivisionSdk) GetDeviceID() string {
return o.DeviceID
}

func (o *haivisionSdk) GetHType() string {
return o.HType
}

// Resty Methods

func (o *haivisionSdk) restyPost(url string, body interface{}) (*resty.Response, error) {
Expand Down

0 comments on commit c166287

Please sign in to comment.