Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GeolocationResponseSchema" /> class.
 /// </summary>
 /// <param name="status">If the request is successful, ok is returned. Otherwise error is returned.</param>
 /// <param name="message">Any additional information from the server is returned here.</param>
 /// <param name="balance">This represents the remaining balance on the API token. Requests that return error are not charged and do not affect balance.</param>
 /// <param name="balanceSlots">This represents the remaining balance of device slots. Requests that return error are not charged and do not affect balance. If -1 is returned, then observe it as an error while calculating slots balance. This element will only exist if you are on a device plan..</param>
 /// <param name="lat">The latitude representing the location.</param>
 /// <param name="lon">The longitude representing the location.</param>
 /// <param name="accuracy">The accuracy of the position is returned in meters.</param>
 /// <param name="address">The physical address of the location.</param>
 /// <param name="addressDetails">addressDetails.</param>
 /// <param name="aged">Shown when the location is based on a single measurement or those older than 90 days or is an LAC fallback.</param>
 /// <param name="fallback">fallback.</param>
 public GeolocationResponseSchema(string status = default(string), string message = default(string), long?balance = default(long?), long?balanceSlots = default(long?), double?lat = default(double?), double?lon = default(double?), long?accuracy = default(long?), string address = default(string), AddressDetailsSchema addressDetails = default(AddressDetailsSchema), int?aged = default(int?), FallbackSchema fallback = default(FallbackSchema))
 {
     this.Status         = status;
     this.Message        = message;
     this.Balance        = balance;
     this.BalanceSlots   = balanceSlots;
     this.Lat            = lat;
     this.Lon            = lon;
     this.Accuracy       = accuracy;
     this.Address        = address;
     this.AddressDetails = addressDetails;
     this.Aged           = aged;
     this.Fallback       = fallback;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="GeolocationSchema" /> class.
 /// </summary>
 /// <param name="token">token.</param>
 /// <param name="id">ID of the device, in case you are in a per-device plan. This could be any unique string such as an IMEI, IMSI, phone number or a hash of any of the previous values, etc. Maximum accepted length is 20 chars, and values should only be alphanumeric (a-z, 0-9).</param>
 /// <param name="radio">radio.</param>
 /// <param name="mcc">\&quot;Mobile Country Code of your operator’s network represented by an integer (Optional). Range: 0 to 999.\&quot;.</param>
 /// <param name="mnc">Mobile Network Code of your operator’s network represented by an integer (Optional). Range: 0 to 999. On CDMA, provide the System ID or SID, with range: 1 to 32767..</param>
 /// <param name="cells">An array of cell ID objects.</param>
 /// <param name="wifi">An array of WiFi objects visible to the device..</param>
 /// <param name="fallbacks">fallbacks.</param>
 /// <param name="address">address.</param>
 /// <param name="ip">IP address of device..</param>
 /// <param name="bt">bt.</param>
 public GeolocationSchema(string token = default(string), string id = default(string), RadioSchema radio = default(RadioSchema), long?mcc = default(long?), long?mnc = default(long?), List <CellSchema> cells = default(List <CellSchema>), List <WifiSchema> wifi = default(List <WifiSchema>), FallbackSchema fallbacks = default(FallbackSchema), GeolocationAddressSchema address = default(GeolocationAddressSchema), string ip = default(string), BtSchema bt = default(BtSchema))
 {
     this.Token     = token;
     this.Id        = id;
     this.Radio     = radio;
     this.Mcc       = mcc;
     this.Mnc       = mnc;
     this.Cells     = cells;
     this.Wifi      = wifi;
     this.Fallbacks = fallbacks;
     this.Address   = address;
     this.Ip        = ip;
     this.Bt        = bt;
 }