fork of SalesforceCaseGenerator customized for support personnel database changes
Fork of SalesforceCaseGenerator by
Diff: SalesForceCaseGenerator.h
- Revision:
- 13:1e06a3a4740d
- Parent:
- 12:8603f9ff1336
- Child:
- 14:f9847b7d314a
diff -r 8603f9ff1336 -r 1e06a3a4740d SalesForceCaseGenerator.h --- a/SalesForceCaseGenerator.h Wed Sep 24 18:52:45 2014 +0000 +++ b/SalesForceCaseGenerator.h Fri Sep 26 04:34:41 2014 +0000 @@ -1,5 +1,7 @@ /* Copyright C2014 ARM, MIT License * + * Author: Doug Anson (doug.anson@arm.com) + * * Permission is hereby granted, free of charge, to any person obtaining a copy of this software * and associated documentation files the "Software", to deal in the Software without restriction, * including without limitation the rights to use, copy, modify, merge, publish, distribute, @@ -19,25 +21,15 @@ #ifndef _SALESFORCE_CASE_GENERATOR_H_ #define _SALESFORCE_CASE_GENERATOR_H_ - #include "HTTPClient.h" - #include "ErrorHandler.h" + #include "SalesforceInterface.h" - class SalesForceCaseGenerator { - private: - HTTPClient *m_http; - ErrorHandler *m_logger; - + class SalesForceCaseGenerator : public SalesforceInterface { public: - SalesForceCaseGenerator(ErrorHandler *logger,void *transport); + SalesForceCaseGenerator(HTTPClient *http,Logger *logger); virtual ~SalesForceCaseGenerator(); - // create a case (via APEX) - bool createCase(char *subject, char *description, char *condition, int temperature, char *latitude, char *longitude); - - protected: - - private: - bool contains(char *json,char *key,char *value); + // Create an anonymous Case instance + bool createAnonymousCase(char *subject, char *description, char *condition, int temperature, char *latitude, char *longitude); }; #endif // _SALESFORCE_CASE_GENERATOR_H_ \ No newline at end of file