This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> Description: Send an icd 15 garmin job to offline vehicle then sign on and validate that job gets sent | |
> Sending sign off to vehicle server from vehicle 255.255.202.020 | |
Received message: Peripheral Type: Garmin<br/>Message Type: Garmin Text Message<br/>Origination Time: 2/1/2012 4:52 PM<br/>Text Message: Test Driver: Hello World 2/1/2012 11:53:02 AM<br/> | |
Received message: Peripheral Type: Garmin<br/>Message Type: Garmin Text Message<br/>Origination Time: 2/1/2012 8:45 PM<br/>Text Message: Test Driver: Hello World 2/1/2012 3:45:51 PM<br/> | |
Received message: Peripheral Type: Garmin<br/>Message Type: Garmin Text Message<br/>Origination Time: 2/1/2012 8:47 PM<br/>Text Message: Test Driver: Hello World 2/1/2012 3:47:31 PM<br/> | |
Received message: Peripheral Type: Garmin<br/>Message Type: Garmin Text Message<br/>Origination Time: 2/1/2012 8:48 PM<br/>Text Message: Test Driver: Hello World 2/1/2012 3:48:41 PM<br/> | |
Received message: Peripheral Type: Garmin<br/>Message Type: Garmin Text Message<br/>Origination Time: 2/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
------ Test started: Assembly: SystemTest.dll ------ | |
> Description: Send an icd 15 garmin job to offline vehicle then sign on and validate that job gets sent | |
> Sending sign off to vehicle server from vehicle 255.255.202.020 | |
> Sending job to leapfrog services (mimicking MyNavtrak) | |
> Job was sent successfully to leapfrog services | |
> Job with id 20432 was saved to jobs table | |
> Validated that vehicle 255.255.202.020 has correct driver testdriver@navtrak.net with user id 52510 assigned to it | |
> Validated that peripheral with id 29 has correct driver testdriver@navtrak.net with user id 52510 assigned to it | |
> Offline job was not received yet |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#region Assembly System.dll, v4.0.0.0 | |
// C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.dll | |
#endregion | |
using System; | |
namespace System.Net | |
{ | |
// Summary: | |
// Contains the values of status codes defined for HTTP. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Map() { | |
var self = this; | |
this.top = 0; | |
this.bottom = 0; | |
this.latitude = 0; | |
this.longitude = 0; | |
this.delta = 0.1; | |
this.display = "map"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function createListingMapView(latitude, longitude) { | |
return tt.ui.createWindow("Listing Map", function () { listingsmap.init(latitude, longitude); }); | |
} | |
var listingsmap = { | |
init: function (latitude, longitude) { | |
listingsmap.coordinates = { Latitude: latitude, Longitude: longitude }; | |
listingsmap.display(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void navigateTo(Float latitude, Float longitude, int numTries) { | |
try | |
{ | |
Log("Navigating to: " + latitude + " / " + longitude + " for try #" + numTries); | |
Integer lat = (int)(latitude * 100000); | |
Integer lon = (int)(longitude * 100000); | |
//get lat/long of address. | |
SWayPoint wayPoint = new SWayPoint(); | |
wayPoint.Location = new LONGPOSITION(lon, lat); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Your Copyright Here | |
* | |
* Appcelerator Titanium is Copyright (c) 2009-2010 by Appcelerator, Inc. | |
* and licensed under the Apache Public License (version 2) | |
*/ | |
#import "TibarModule.h" | |
#import "TiBase.h" | |
#import "TiHost.h" | |
#import "TiUtils.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Configuration; | |
using Newtonsoft.Json; | |
using Housters.Schemas.Models.Account; | |
using Housters.Business.Utility.Helpers; | |
namespace Housters.Business.Services.Account.Billing { | |
public static class BalancedService { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static string PostWithAuth(string url, string requestBody = null, string method = "POST") { | |
using (WebClient client = new WebClient()) { | |
var credentials = Convert.ToBase64String(Encoding.Default.GetBytes(APIKey)); | |
client.Headers.Add(HttpRequestHeader.Authorization, credentials); | |
client.Headers.Add(HttpRequestHeader.ContentType, "application/json");//x-www-form-urlencoded | |
if (!String.IsNullOrEmpty(requestBody)) | |
return client.UploadString(url, method, requestBody); | |
else | |
return client.UploadString(url, method); | |
} |