Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobkeeler committed Feb 22, 2018
2 parents a7a60c7 + 7fd694e commit c86505c
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 11 deletions.
5 changes: 3 additions & 2 deletions app/controller/NavigationController.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ SDL.NavigationController = Em.Object.create(
* @param {Object} request
*/
sendLocation: function(request) {
this.model.push(
this.model.LocationDetails.push(
{
coordinate: {
latitudeDegrees: request.params.latitudeDegrees,
Expand Down Expand Up @@ -109,7 +109,8 @@ SDL.NavigationController = Em.Object.create(
FFW.Navigation.wayPointSend(
SDL.SDLModel.data.resultCode.SUCCESS,
SDL.NavigationModel.LocationDetails,
request.id
request.id,
request.params.appID
);
SDL.NavigationModel.appReqPull.splice(
SDL.NavigationModel.appReqPull.indexOf(request.params.appID), 1
Expand Down
12 changes: 6 additions & 6 deletions app/model/NavigationModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,11 @@ SDL.NavigationModel = Em.Object.create({
longitudeDegrees: 0
},
locationName: 'locationName',
addressLines: 'addressLines',
addressLines: ['addressLines'],
locationDescription: 'locationDescription',
phoneNumber: 'phoneNumber',
locationImage: {
value: '',
value: 'images/common/defaultButtonImage.png',
imageType: 'DYNAMIC'
},
searchAddress: {
Expand All @@ -102,7 +102,7 @@ SDL.NavigationModel = Em.Object.create({
longitudeDegrees: 0
},
locationName: 'locationName',
addressLines: 'addressLines',
addressLines: ['addressLines'],
locationDescription: 'locationDescription',
phoneNumber: 'phoneNumber',
locationImage: {
Expand All @@ -127,11 +127,11 @@ SDL.NavigationModel = Em.Object.create({
longitudeDegrees: 0
},
locationName: 'locationName',
addressLines: 'addressLines',
addressLines: ['addressLines'],
locationDescription: 'locationDescription',
phoneNumber: 'phoneNumber',
locationImage: {
value: '',
value: 'images/common/defaultButtonImage.png',
imageType: 'DYNAMIC'
},
searchAddress: {
Expand All @@ -152,7 +152,7 @@ SDL.NavigationModel = Em.Object.create({
longitudeDegrees: 0
},
locationName: 'locationName',
addressLines: 'addressLines',
addressLines: ['addressLines'],
locationDescription: 'locationDescription',
phoneNumber: 'phoneNumber',
locationImage: {
Expand Down
4 changes: 3 additions & 1 deletion ffw/NavigationRPC.js
Original file line number Diff line number Diff line change
Expand Up @@ -511,14 +511,16 @@ FFW.Navigation = FFW.RPCObserver.create(
* @param {Object} data
* @param {number} id
*/
wayPointSend: function(resultCode, data, id) {
wayPointSend: function(resultCode, data, id, appID) {
if (resultCode == SDL.SDLModel.data.resultCode.SUCCESS &&
data && id) {
// send repsonse
var JSONMessage = {
'jsonrpc': '2.0',
'id': id,
'result': {
'code': resultCode, // type (enum) from SDL protocol
'appID': appID,
'wayPoints': data,
'method': 'Navigation.GetWayPoints'
}
Expand Down
4 changes: 2 additions & 2 deletions ffw/UIRPC.js
Original file line number Diff line number Diff line change
Expand Up @@ -293,8 +293,8 @@ FFW.UI = FFW.RPCObserver.create(
request.params.appID
).sdlSetMediaClockTimer(request.params);
if (resultCode === SDL.SDLModel.data.resultCode.SUCCESS) {
if(params.enableSeek) {
this.OnSeekMediaClockTimer(params.startTime, params.appID);
if(request.params.enableSeek) {
this.OnSeekMediaClockTimer(request.params.startTime, request.params.appID);
}
this.sendUIResult(resultCode, request.id, request.method);
} else {
Expand Down

0 comments on commit c86505c

Please # to comment.