workingset

package
v0.0.0-...-e633676 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 3, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NotNotifyUser = false
	NotifyUser    = true
)

Is

Variables

This section is empty.

Functions

This section is empty.

Types

type DWorkingsetJSON

type DWorkingsetJSON struct {
	NoAllowLostDevices interface{}   `json:"noAllowLostDevices"`
	Code               string        `json:"code"`
	DeviceCount        int           `json:"deviceCount"`
	Devices            []interface{} `json:"devices"`
	Links              []interface{} `json:"links"`
	CreatedDate        int64         `json:"createdDate"`
}

DWorkingsetJSON is

type WSDevicesJSON

type WSDevicesJSON struct {
	Links []struct {
		Rel  string `json:"rel"`
		Href string `json:"href"`
	} `json:"links"`
	Content []struct {
		DeviceID    string `json:"deviceId"`
		Status      string `json:"status"`
		Model       string `json:"model"`
		LockStatus  bool   `json:"lockStatus"`
		LostStatus  bool   `json:"lostStatus"`
		CreatedDate int64  `json:"createdDate"`
		Presence    struct {
			State    string      `json:"state"`
			ClientIP interface{} `json:"clientIp"`
		} `json:"presence"`
		Network struct {
			Telephony struct {
				NetworkRoaming      bool        `json:"networkRoaming"`
				SimOperator         interface{} `json:"simOperator"`
				NetworkOperatorName interface{} `json:"networkOperatorName"`
				Msisdn              interface{} `json:"msisdn"`
				SimState            interface{} `json:"simState"`
				SimserialNumber     interface{} `json:"simserialNumber"`
			} `json:"telephony"`
			Wifi struct {
				LeaseDuration            interface{} `json:"leaseDuration"`
				Mtu                      interface{} `json:"mtu"`
				DNS1                     interface{} `json:"dns1"`
				DNS2                     interface{} `json:"dns2"`
				NetworkType              interface{} `json:"networkType"`
				CurrentWifiApnSsid       interface{} `json:"currentWifiApnSsid"`
				CurrentWifiApnHiddenSsid bool        `json:"currentWifiApnHiddenSsid"`
				Gateway                  interface{} `json:"gateway"`
				Server                   interface{} `json:"server"`
				Netmask                  interface{} `json:"netmask"`
				IP                       interface{} `json:"ip"`
			} `json:"wifi"`
			Bluetooth interface{} `json:"bluetooth"`
		} `json:"network"`
		OsProfile struct {
			Hardware interface{} `json:"hardware"`
			Host     interface{} `json:"host"`
			Display  interface{} `json:"display"`
			Product  interface{} `json:"product"`
			Board    interface{} `json:"board"`
			Model    interface{} `json:"model"`
			Device   interface{} `json:"device"`
			Serial   interface{} `json:"serial"`
		} `json:"osProfile"`
		CurrentUser struct {
			Code           interface{} `json:"code"`
			Mail           string      `json:"mail"`
			FirstName      string      `json:"firstName"`
			LastName       string      `json:"lastName"`
			ActivationCode interface{} `json:"activationCode"`
			IdentityNo     interface{} `json:"identityNo"`
			Enabled        bool        `json:"enabled"`
			Activated      bool        `json:"activated"`
			ActivationDate interface{} `json:"activationDate"`
			Profile        struct {
				Code   string `json:"code"`
				Name   string `json:"name"`
				Policy struct {
					Code string      `json:"code"`
					Name interface{} `json:"name"`
				} `json:"policy"`
			} `json:"profile"`
			Current bool `json:"current"`
		} `json:"currentUser"`
		Groups []struct {
			Code interface{} `json:"code"`
			Name interface{} `json:"name"`
		} `json:"groups"`
		AdminArea struct {
			Code interface{} `json:"code"`
			Name string      `json:"name"`
		} `json:"adminArea"`
		ActivePolicy struct {
			Code interface{} `json:"code"`
			Name interface{} `json:"name"`
		} `json:"activePolicy"`
		AfexMode string `json:"afexMode"`
		Links    []struct {
			Rel  string `json:"rel"`
			Href string `json:"href"`
		} `json:"links"`
		Code  string `json:"code"`
		Label string `json:"label,omitempty"`
	} `json:"content"`
	Page struct {
		Size          int `json:"size"`
		TotalElements int `json:"totalElements"`
		TotalPages    int `json:"totalPages"`
		Number        int `json:"number"`
	} `json:"page"`
}

WSDevicesJSON is

type Workingset

type Workingset struct{}

Workingset is

func (Workingset) AddDeviceWorkingSet

func (w Workingset) AddDeviceWorkingSet(workingsetKey string, deviceCode ...string) string

AddDeviceWorkingSet is

func (Workingset) CreateWorkingset

func (w Workingset) CreateWorkingset() string

CreateWorkingset is

func (Workingset) GetWorkingsetDevices

func (w Workingset) GetWorkingsetDevices(workingsetKey string) []string

GetWorkingsetDevices returns all devices in the workingset

func (Workingset) PushApplications

func (w Workingset) PushApplications(applicationCode []string, notifyUser bool, deviceID ...string) bool

PushApplications is

func (Workingset) PushApplicationsExternal

func (w Workingset) PushApplicationsExternal(fileName string, url string, versionCode int, notifyUser bool, deviceID ...string) bool

PushApplicationsExternal is

func (Workingset) SendRichMessage

func (w Workingset) SendRichMessage(message string, messageType string, timeType string, time int64, workingSetKeyExternal string, deviceID ...string) bool

SendRichMessage is

func (Workingset) UninstallInstallApplication

func (w Workingset) UninstallInstallApplication(applicationCode []string, notifyUser bool, deviceID ...string) bool

UninstallInstallApplication is

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL