Swift Rest SDK Documentation Beta

Classes

Mobiledge​XiOSLibrary.​Matching​Engine.​Dynamic​Loc​Group​Reply
Mobiledge​XiOSLibrary.​Matching​Engine

MatchingEngine class MobiledgeX MatchingEngine APIs

Mobiledge​XiOSLibrary.​Matching​Engine​State

Each instance of MatchingEngine class contains MatchingEngineState Holds information about app instance, information required for MatchingEngine API calls, and any necessary device info

Mobiledge​XiOSLibrary.​Mobiledge​XLocation

MobiledgeX Location Services for easy location service integration with application

Mobiledge​XiOSLibrary.​Network​Interface

Contains functions related to network interfaces (cellular, wifi)

Mobiledge​XiOSLibrary.​Performance​Metrics.​Net​Test

Class that allows developers to easily test latency of their various backend servers. This is used in the implementation of FindCloudlet Performance Mode.

Mobiledge​XiOSLibrary.​Performance​Metrics.​Site

Object used by NetTest to test latency of server. Each site object contains the server path or host + port, avg latency, standard deviation, list of latency times, and the TestType. TestType is either PING or CONNECT, where PING is ICMP Ping (not implemented) and CONNECT is is actually setting up a connection and then disconnecting immediately.

Structures

Mobiledge​XiOSLibrary.​Matching​Engine.​Dynamic​Loc​Group​Request
Mobiledge​XiOSLibrary.​Matching​Engine.​App​Inst​List​Request

AppInstListRequest struct Request object sent via GetAppInstList from client side to DME Request requires session_cookie from RegisterClientReply, gps_location, and carrier_name

Mobiledge​XiOSLibrary.​Matching​Engine.​App​Inst​List​Reply

AppInstListReply struct Reply object received via GetAppInstList If an application instance exists, this will return AI_SUCCESS. Will provide information about all application instances deployed on specified carrier network

Mobiledge​XiOSLibrary.​Matching​Engine.​Cloudlet​Location

Object returned in AppInstListReply cloudlets field The geo-location of Cloudlets (resources) within the Operator's Telco infrastructure, where Developers can create and deploy application instances to the available Cloudlets.

Mobiledge​XiOSLibrary.​Matching​Engine.​Appinstance

Object returned in CloudletLocation appinstances field Information about specific app instances

Mobiledge​XiOSLibrary.​Matching​Engine.​Find​Cloudlet​Request

FindCloudletRequest struct Request object sent via FindCloudlet from client side to DME Request requires session_cookie from RegisterClientReply, gps_location, and carrier_name

Mobiledge​XiOSLibrary.​Matching​Engine.​Find​Cloudlet​Reply

FindCloudletReply struct Reply object received via FindCloudlet If application instance exists, this will return FIND_FOUND and contain information about the application instance.

Mobiledge​XiOSLibrary.​Matching​Engine.​App​Port

Object returned in ports of several API replies

Mobiledge​XiOSLibrary.​Matching​Engine.​Timestamp

Object used in timestamp field of Loc

Mobiledge​XiOSLibrary.​Matching​Engine.​Loc

Object used and returned in gps_location field of serveral API requests and replies

Mobiledge​XiOSLibrary.​Matching​Engine.​Qos​Position​Request

QosPositionKpiRequest struct Request object sent via GetQosPositionKpi from client side to DME Request requires session_cookie from RegisterClientReply and an array of QosPositions

Mobiledge​XiOSLibrary.​Matching​Engine.​Qos​Position

Object in positions field in QosPositionRequest Object that contains gps location and id for that gps location

Mobiledge​XiOSLibrary.​Matching​Engine.​Band​Selection

Object in QosPositionRequest band_selection field Each field's value is an array of Strings Supported band values

Mobiledge​XiOSLibrary.​Matching​Engine.​Qos​Position​Kpi​Reply

QosPositionKpiReply struct Reply object received via GetQosPositionKpi If an application instance exists, this will return RS_SUCCESS. Will provide quality of service information for gps locations specified

Mobiledge​XiOSLibrary.​Matching​Engine.​Qos​Position​Kpi​Result

Object returned in position_results field of QosPositionKpiReply Qos results for specific location

Mobiledge​XiOSLibrary.​Matching​Engine.​Register​Client​Request

RegisterClientRequest struct Request object sent via RegisterClient from client side to DME Request requires org_name, app_name, and app_vers

Mobiledge​XiOSLibrary.​Matching​Engine.​Register​Client​Reply

RegisterClientReply struct Reply object received via RegisterClient If application exists, this will return RS_SUCCESS and contain a session cookie to be used in other DME APIs

Mobiledge​XiOSLibrary.​Matching​Engine.​Verify​Location​Request

VerifyLocationRequest struct Request object sent via VerifyLocation from client side to DME

Mobiledge​XiOSLibrary.​Matching​Engine.​Verify​Location​Reply

VerifyLocationReply struct Reply object received via VerifyLocation If verified, will return LOC_VERIFIED and CONNECTED_TO_SPECIFIED_TOWER Also contains information about accuracy of provided gps location

Mobiledge​XiOSLibrary.​Socket

Socket struct returned by some GetConnection functions

Enumerations

Mobiledge​XiOSLibrary.​Carrier​Info.​Carrier​Info​Error
Mobiledge​XiOSLibrary.​Matching​Engine.​Dynamic​Loc​Group​Request.​Dlg​Comm​Type
Mobiledge​XiOSLibrary.​Matching​Engine.​App​Inst​List​Reply.​AIStatus

Values for AppInstList status field

Mobiledge​XiOSLibrary.​Matching​Engine.​Find​Cloudlet​Reply.​Find​Status

Values for FindCloudletReply status enum

Mobiledge​XiOSLibrary.​Matching​Engine.​Find​Cloudlet​Mode

Two modes to call FindCloudlet. First is Proximity (default) which finds the nearest cloudlet based on gps location with application instance Second is Performance. This mode will test all cloudlets with application instance deployed to find cloudlet with lowest latency. This mode takes longer to finish because of latency test.

Mobiledge​XiOSLibrary.​Matching​Engine.​Get​Connection​Error

Errors on GetConnection

Mobiledge​XiOSLibrary.​Matching​Engine.​Edge​Error

Errors related to trying to get a telco edge connection

Mobiledge​XiOSLibrary.​Matching​Engine.​Get​Connection​Protocol

L4 and L7 protocols supported by MobiledgeX iOS GetConnection

Mobiledge​XiOSLibrary.​Matching​Engine.​APIPaths
Mobiledge​XiOSLibrary.​Matching​Engine.​DMEConstants
Mobiledge​XiOSLibrary.​Matching​Engine.​Matching​Engine​Error

MatchingEngine API errors

Mobiledge​XiOSLibrary.​Matching​Engine.​Invalid​Token​Server​Token​Error

Occurs when VerifyLocation API is unable to communicate with token server

Mobiledge​XiOSLibrary.​Matching​Engine.​Url​Session​Error

Occurs on bad HTTP requests

Mobiledge​XiOSLibrary.​Matching​Engine.​IDTypes

IDTypes used for unique_id_type in RegisterClientRequest??

Mobiledge​XiOSLibrary.​Matching​Engine.​Reply​Status

Values for RegisterClientReply, DynamicLocGroupReply, and QosPositionKpiReply status field

Mobiledge​XiOSLibrary.​Matching​Engine.​LProto

Values for AppPort proto field

Mobiledge​XiOSLibrary.​Matching​Engine.​Verify​Location​Reply.​Tower​Status

Values for VerifyLocationReply tower_status field

Mobiledge​XiOSLibrary.​Matching​Engine.​Verify​Location​Reply.​GPSLocation​Status

Values for VerifyLocationReply gps_location_status field

Mobiledge​XiOSLibrary.​Mobiledge​XLocation.​Service​Type

Types of Location ServiceTypes, reflects built-in methods that iOS uses to get location Visits: Only updates location when user spends time at location and then moves (the most power-efficient) SignificantChange : Updates location when user's location significantly changes Standard: For real time location updates (requires most power)

Mobiledge​XiOSLibrary.​Mobiledge​XLocation.​Mobiledge​XLocation​Error
Mobiledge​XiOSLibrary

Swift MobiledgeX SDK namespace Used for "namespacing" purposes to prevent naming conflicts from common names (Util, NetworkInterface, etc.)

Mobiledge​XiOSLibrary.​Dme​Dns​Error

Occurs when MobiledgeX does not have user's MCC and MNC mapped to a DME

Mobiledge​XiOSLibrary.​System​Error

Occurs when GetConnection function using bsd sockets has an error

Mobiledge​XiOSLibrary.​Mobiledge​XError

Generic error from MobiledgeX SDK

Mobiledge​XiOSLibrary.​Performance​Metrics.​Net​Test.​Test​Type

TestType is either PING or CONNECT, where PING is ICMP Ping (not implemented) and CONNECT is is actually setting up a connection and then disconnecting immediately.

Mobiledge​XiOSLibrary.​Performance​Metrics

Namespace for collecting network performance. Contains NetTest and Site classes