Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of SalesforceCaseGenerator by
Revision 14:f9847b7d314a, committed 2014-10-09
- Comitter:
- ansond
- Date:
- Thu Oct 09 04:04:23 2014 +0000
- Parent:
- 13:1e06a3a4740d
- Commit message:
- updates for renamed support personnel database
Changed in this revision
| SalesForceCaseGenerator.cpp | Show annotated file Show diff for this revision Revisions of this file |
| SalesForceCaseGenerator.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/SalesForceCaseGenerator.cpp Fri Sep 26 04:34:41 2014 +0000
+++ b/SalesForceCaseGenerator.cpp Thu Oct 09 04:04:23 2014 +0000
@@ -33,7 +33,7 @@
}
// Create an anonymous Case instance
- bool SalesForceCaseGenerator::createAnonymousCase(char *subject,char *description,char *condition,int temperature,char *latitude,char *longitude) {
+ bool SalesForceCaseGenerator::createAnonymousCase(char *technician,char *description,char *status,int temperature,char *latitude,char *longitude) {
bool success = false;
// data buffer and result buffer
@@ -44,12 +44,12 @@
// build the new case to issue to Salesforce.com
MbedJSONValue report;
- report["subject"] = subject;
- report["description"] = description;
- report["condition"] = condition;
- report["temperature"] = temperature;
- report["latitude"] = latitude;
- report["longitude"] = longitude;
+ report["subject"] = technician; // we use the Subject field from Case
+ report["description"] = description; // Custom field - description of technician
+ report["condition"] = status; // Custom field - originally named "Condition", now "Status" of subject
+ report["temperature"] = temperature; // Custom field - ambient temperature in C
+ report["latitude"] = latitude; // Custom field - technician position latitude
+ report["longitude"] = longitude; // Custom field - technician position longitude
// covert to the HTTP data types
ALLOC_BUFFER(data);
--- a/SalesForceCaseGenerator.h Fri Sep 26 04:34:41 2014 +0000
+++ b/SalesForceCaseGenerator.h Thu Oct 09 04:04:23 2014 +0000
@@ -29,7 +29,7 @@
virtual ~SalesForceCaseGenerator();
// Create an anonymous Case instance
- bool createAnonymousCase(char *subject, char *description, char *condition, int temperature, char *latitude, char *longitude);
+ bool createAnonymousCase(char *technician, char *description, char *status, int temperature, char *latitude, char *longitude);
};
#endif // _SALESFORCE_CASE_GENERATOR_H_
\ No newline at end of file
