diff --git a/include/opentxs/client/OTAPI.hpp b/include/opentxs/client/OTAPI.hpp index e0d86847aa..115c2a5c3c 100644 --- a/include/opentxs/client/OTAPI.hpp +++ b/include/opentxs/client/OTAPI.hpp @@ -1619,8 +1619,6 @@ class OTAPI_Wrap // // Returns int32_t: // -1 means error; no message was sent. - // -2 means the message was sent, but the request number must be passed as a - string, so call GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits into an integer... @@ -2402,8 +2400,6 @@ class OTAPI_Wrap // // Returns int32_t: // -1 means error; no message was sent. - // -2 means the message was sent, but the request number must be passed as a - string, so call GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits into an integer... @@ -2541,8 +2537,6 @@ class OTAPI_Wrap */ // Returns int32_t: // -1 means error; no message was sent. - // -2 means the message was sent, but the request number must be passed as a - // string, so call GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits // into an integer... @@ -2590,8 +2584,6 @@ class OTAPI_Wrap */ // Returns int32_t: // -1 means error; no message was sent. - // -2 means the message was sent, but the request number must be passed as a - // string, so call GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits // into an integer... @@ -2609,8 +2601,6 @@ class OTAPI_Wrap // // Returns int32_t: // -1 means error; no message was sent. - // -2 means the message was sent, but the request number must be passed as a - string, so call GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits into an integer... @@ -2626,8 +2616,6 @@ class OTAPI_Wrap // // Returns int32_t: // -1 means error; no message was sent. - // -2 means the message was sent, but the request number must be passed as a - string, so call GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits into an integer... @@ -2680,8 +2668,6 @@ class OTAPI_Wrap */ // Returns int32_t: // -1 means error; no message was sent. - // -2 means the message was sent, but the request number must be passed as a - // string, so call GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits // into an integer... @@ -2722,8 +2708,6 @@ class OTAPI_Wrap */ // Returns int32_t: // -1 means error; no message was sent. - // -2 means the message was sent, but the request number must be passed as a - // string, so call GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits // into an integer... @@ -2751,8 +2735,6 @@ class OTAPI_Wrap */ // Returns int32_t: // -1 means error; no message was sent. - // -2 means the message was sent, but the request number must be passed as a - // string, so call GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits // into an integer... @@ -2799,8 +2781,6 @@ class OTAPI_Wrap */ // Returns int32_t: // -1 means error; no message was sent. - // -2 means the message was sent, but the request number must be passed as a - // string, so call GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits // into an integer... @@ -2839,8 +2819,6 @@ class OTAPI_Wrap */ // Returns int32_t: // -1 means error; no message was sent. - // -2 means the message was sent, but the request number must be passed as a - // string, so call GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits // into an integer... @@ -2868,8 +2846,6 @@ class OTAPI_Wrap */ // Returns int32_t: // -1 means error; no message was sent. - // -2 means the message was sent, but the request number must be passed as a - // string, so call GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits // into an integer... @@ -2888,8 +2864,6 @@ class OTAPI_Wrap // // Returns int32_t: // -1 means error; no message was sent. - // -2 means the message was sent, but the request number must be passed as a - string, so call GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits into an integer... @@ -2906,8 +2880,6 @@ class OTAPI_Wrap // // Returns int32_t: // -1 means error; no message was sent. - // -2 means the message was sent, but the request number must be passed as a - string, so call GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits into an integer... @@ -2926,8 +2898,6 @@ class OTAPI_Wrap // // Returns int32_t: // -1 means error; no message was sent. - // -2 means the message was sent, but the request number must be passed as a - string, so call GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits into an integer... @@ -2945,8 +2915,6 @@ class OTAPI_Wrap // // Returns int32_t: // -1 means error; no message was sent. - // -2 means the message was sent, but the request number must be passed as a - string, so call GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits into an integer... @@ -2965,8 +2933,6 @@ class OTAPI_Wrap // // Returns int32_t: // -1 means error; no message was sent. - // -2 means the message was sent, but the request number must be passed as a - string, so call GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits into an integer... @@ -3037,8 +3003,6 @@ class OTAPI_Wrap // // Returns int32_t: // -1 means error; no message was sent. - // -2 means the message was sent, but the request number must be passed as a - string, so call GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits into an integer... @@ -3110,8 +3074,6 @@ class OTAPI_Wrap // // Returns int32_t: // -1 means error; no message was sent. - // -2 means the message was sent, but the request number must be passed as a - string, so call GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits into an integer... @@ -3149,8 +3111,6 @@ class OTAPI_Wrap // // Returns int32_t: // -1 means error; no message was sent. - // -2 means the message was sent, but the request number must be passed as a - string, so call GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits into an integer... @@ -3172,8 +3132,6 @@ class OTAPI_Wrap // // Returns int32_t: // -1 means error; no message was sent. - // -2 means the message was sent, but the request number must be passed as a - string, so call GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits into an integer... @@ -3200,8 +3158,6 @@ class OTAPI_Wrap // // Returns int32_t: // -1 means error; no message was sent. - // -2 means the message was sent, but the request number must be passed as a - string, so call GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits into an integer... @@ -3284,8 +3240,6 @@ class OTAPI_Wrap // Returns int32_t: // -1 means error; no message was sent. - // -2 means the message was sent, but the request number must be passed as a - // string, so call GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits // into an integer... @@ -3299,8 +3253,6 @@ class OTAPI_Wrap // Returns int32_t: // -1 means error; no message was sent. - // -2 means the message was sent, but the request number must be passed as a - // string, so call GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits // into an integer... @@ -3315,8 +3267,6 @@ class OTAPI_Wrap // from server (pop message buf for the response) // Returns int32_t: // -1 means error; no message was sent. - // -2 means the message was sent, but the request number must be passed as a - // string, so call GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits // into an integer... @@ -3412,8 +3362,6 @@ class OTAPI_Wrap */ // Returns int32_t: // -1 means error; no message was sent. - // -2 means the message was sent, but the request number must be passed as a - // string, so call GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits // into an integer... @@ -3457,8 +3405,6 @@ class OTAPI_Wrap */ // Returns int32_t: // -1 means error; no message was sent. - // -2 means the message was sent, but the request number must be passed as a - // string, so call GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits // into an integer... @@ -3500,8 +3446,6 @@ class OTAPI_Wrap // // Returns int32_t: // -1 means error; no message was sent. - // -2 means the message was sent, but the request number must be passed as a - string, so call GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits into an integer... @@ -3547,8 +3491,6 @@ class OTAPI_Wrap // // Returns int32_t: // -1 means error; no message was sent. - // -2 means the message was sent, but the request number must be passed as a - string, so call GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits into an integer... @@ -3567,8 +3509,6 @@ class OTAPI_Wrap // // Returns int32_t: // -1 means error; no message was sent. - // -2 means the message was sent, but the request number must be passed as a - string, so call GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits into an integer... @@ -3585,8 +3525,6 @@ class OTAPI_Wrap // // Returns int32_t: // -1 means error; no message was sent. - // -2 means the message was sent, but the request number must be passed as a - string, so call GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits into an integer... @@ -3648,8 +3586,6 @@ class OTAPI_Wrap // // Returns int32_t: // -1 means error; no message was sent. - // -2 means the message was sent, but the request number must be passed as a - // string, so call GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits // into an integer... @@ -3663,8 +3599,6 @@ class OTAPI_Wrap // maximum depth) // Returns int32_t: // -1 means error; no message was sent. - // -2 means the message was sent, but the request number must be passed as a - // string, so call GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits // into an integer... @@ -3679,8 +3613,6 @@ class OTAPI_Wrap //! Gets all recent trades (up until maximum depth) // Returns int32_t: // -1 means error; no message was sent. - // -2 means the message was sent, but the request number must be passed as a - // string, so call GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits // into an integer... @@ -3695,8 +3627,6 @@ class OTAPI_Wrap // Market_GetOffers() call, which seems similar otherwise. // Returns int32_t: // -1 means error; no message was sent. - // -2 means the message was sent, but the request number must be passed as a - // string, so call GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits // into an integer... @@ -3710,8 +3640,6 @@ class OTAPI_Wrap // Returns int32_t: // -1 means error; no message was sent. - // -2 means the message was sent, but the request number must be passed as a - // string, so call GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits // into an integer... @@ -3725,8 +3653,6 @@ class OTAPI_Wrap // Returns int32_t: // -1 means error; no message was sent. - // -2 means the message was sent, but the request number must be passed as a - // string, so call GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits // into an integer... @@ -3895,8 +3821,6 @@ class OTAPI_Wrap // // Returns int32_t: // -1 means error; no message was sent. - // -2 means the message was sent, but the request number must be passed as a - string, so call GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits into an integer... diff --git a/include/opentxs/client/OTAPI_Exec.hpp b/include/opentxs/client/OTAPI_Exec.hpp index 8f11723867..64c81f40d7 100644 --- a/include/opentxs/client/OTAPI_Exec.hpp +++ b/include/opentxs/client/OTAPI_Exec.hpp @@ -1647,8 +1647,6 @@ class OTAPI_Exec // // Returns int32_t: // -1 means error; no message was sent. - // -2 means the message was sent, but the request number must be passed as a - string, so call GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits into an integer... @@ -2451,8 +2449,6 @@ class OTAPI_Exec // // Returns int32_t: // -1 means error; no message was sent. - // -2 means the message was sent, but the request number must be passed as a - string, so call GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits into an integer... @@ -2590,8 +2586,6 @@ class OTAPI_Exec */ // Returns int32_t: // -1 means error; no message was sent. - // -2 means the message was sent, but the request number must be passed as a - // string, so call GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits // into an integer... @@ -2639,8 +2633,6 @@ class OTAPI_Exec */ // Returns int32_t: // -1 means error; no message was sent. - // -2 means the message was sent, but the request number must be passed as a - // string, so call GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits // into an integer... @@ -2658,8 +2650,6 @@ class OTAPI_Exec // // Returns int32_t: // -1 means error; no message was sent. - // -2 means the message was sent, but the request number must be passed as a - string, so call GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits into an integer... @@ -2675,8 +2665,6 @@ class OTAPI_Exec // // Returns int32_t: // -1 means error; no message was sent. - // -2 means the message was sent, but the request number must be passed as a - string, so call GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits into an integer... @@ -2729,8 +2717,6 @@ class OTAPI_Exec */ // Returns int32_t: // -1 means error; no message was sent. - // -2 means the message was sent, but the request number must be passed as a - // string, so call GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits // into an integer... @@ -2771,8 +2757,6 @@ class OTAPI_Exec */ // Returns int32_t: // -1 means error; no message was sent. - // -2 means the message was sent, but the request number must be passed as a - // string, so call GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits // into an integer... @@ -2800,8 +2784,6 @@ class OTAPI_Exec */ // Returns int32_t: // -1 means error; no message was sent. - // -2 means the message was sent, but the request number must be passed as a - // string, so call GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits // into an integer... @@ -2848,8 +2830,6 @@ class OTAPI_Exec */ // Returns int32_t: // -1 means error; no message was sent. - // -2 means the message was sent, but the request number must be passed as a - // string, so call GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits // into an integer... @@ -2888,8 +2868,6 @@ class OTAPI_Exec */ // Returns int32_t: // -1 means error; no message was sent. - // -2 means the message was sent, but the request number must be passed as a - // string, so call GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits // into an integer... @@ -2917,8 +2895,6 @@ class OTAPI_Exec */ // Returns int32_t: // -1 means error; no message was sent. - // -2 means the message was sent, but the request number must be passed as a - // string, so call GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits // into an integer... @@ -2937,8 +2913,6 @@ class OTAPI_Exec // // Returns int32_t: // -1 means error; no message was sent. - // -2 means the message was sent, but the request number must be passed as a - string, so call GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits into an integer... @@ -2955,8 +2929,6 @@ class OTAPI_Exec // // Returns int32_t: // -1 means error; no message was sent. - // -2 means the message was sent, but the request number must be passed as a - string, so call GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits into an integer... @@ -2975,8 +2947,6 @@ class OTAPI_Exec // // Returns int32_t: // -1 means error; no message was sent. - // -2 means the message was sent, but the request number must be passed as a - string, so call GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits into an integer... @@ -2994,8 +2964,6 @@ class OTAPI_Exec // // Returns int32_t: // -1 means error; no message was sent. - // -2 means the message was sent, but the request number must be passed as a - string, so call GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits into an integer... @@ -3014,8 +2982,6 @@ class OTAPI_Exec // // Returns int32_t: // -1 means error; no message was sent. - // -2 means the message was sent, but the request number must be passed as a - string, so call GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits into an integer... @@ -3086,8 +3052,6 @@ class OTAPI_Exec // // Returns int32_t: // -1 means error; no message was sent. - // -2 means the message was sent, but the request number must be passed as a - string, so call GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits into an integer... @@ -3159,8 +3123,6 @@ class OTAPI_Exec // // Returns int32_t: // -1 means error; no message was sent. - // -2 means the message was sent, but the request number must be passed as a - string, so call GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits into an integer... @@ -3198,8 +3160,6 @@ class OTAPI_Exec // // Returns int32_t: // -1 means error; no message was sent. - // -2 means the message was sent, but the request number must be passed as a - string, so call GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits into an integer... @@ -3221,8 +3181,6 @@ class OTAPI_Exec // // Returns int32_t: // -1 means error; no message was sent. - // -2 means the message was sent, but the request number must be passed as a - string, so call GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits into an integer... @@ -3249,8 +3207,6 @@ class OTAPI_Exec // // Returns int32_t: // -1 means error; no message was sent. - // -2 means the message was sent, but the request number must be passed as a - string, so call GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits into an integer... @@ -3333,8 +3289,6 @@ class OTAPI_Exec // Returns int32_t: // -1 means error; no message was sent. - // -2 means the message was sent, but the request number must be passed as a - // string, so call GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits // into an integer... @@ -3348,8 +3302,6 @@ class OTAPI_Exec // Returns int32_t: // -1 means error; no message was sent. - // -2 means the message was sent, but the request number must be passed as a - // string, so call GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits // into an integer... @@ -3364,8 +3316,6 @@ class OTAPI_Exec // from server (pop message buf for the response) // Returns int32_t: // -1 means error; no message was sent. - // -2 means the message was sent, but the request number must be passed as a - // string, so call GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits // into an integer... @@ -3462,8 +3412,6 @@ class OTAPI_Exec */ // Returns int32_t: // -1 means error; no message was sent. - // -2 means the message was sent, but the request number must be passed as a - // string, so call GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits // into an integer... @@ -3506,8 +3454,6 @@ class OTAPI_Exec */ // Returns int32_t: // -1 means error; no message was sent. - // -2 means the message was sent, but the request number must be passed as a - // string, so call GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits // into an integer... @@ -3549,8 +3495,6 @@ class OTAPI_Exec // // Returns int32_t: // -1 means error; no message was sent. - // -2 means the message was sent, but the request number must be passed as a - string, so call GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits into an integer... @@ -3596,8 +3540,6 @@ class OTAPI_Exec // // Returns int32_t: // -1 means error; no message was sent. - // -2 means the message was sent, but the request number must be passed as a - string, so call GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits into an integer... @@ -3616,8 +3558,6 @@ class OTAPI_Exec // // Returns int32_t: // -1 means error; no message was sent. - // -2 means the message was sent, but the request number must be passed as a - string, so call GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits into an integer... @@ -3635,8 +3575,6 @@ class OTAPI_Exec // // Returns int32_t: // -1 means error; no message was sent. - // -2 means the message was sent, but the request number must be passed as a - string, so call GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits into an integer... @@ -3699,8 +3637,6 @@ class OTAPI_Exec // // Returns int32_t: // -1 means error; no message was sent. - // -2 means the message was sent, but the request number must be passed as a - // string, so call GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits // into an integer... @@ -3714,8 +3650,6 @@ class OTAPI_Exec // maximum depth) // Returns int32_t: // -1 means error; no message was sent. - // -2 means the message was sent, but the request number must be passed as a - // string, so call GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits // into an integer... @@ -3731,8 +3665,6 @@ class OTAPI_Exec //! Gets all recent trades (up until maximum depth) // Returns int32_t: // -1 means error; no message was sent. - // -2 means the message was sent, but the request number must be passed as a - // string, so call GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits // into an integer... @@ -3747,8 +3679,6 @@ class OTAPI_Exec // Market_GetOffers() call, which seems similar otherwise. // Returns int32_t: // -1 means error; no message was sent. - // -2 means the message was sent, but the request number must be passed as a - // string, so call GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits // into an integer... @@ -3764,8 +3694,6 @@ class OTAPI_Exec // Returns int32_t: // -1 means error; no message was sent. - // -2 means the message was sent, but the request number must be passed as a - // string, so call GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits // into an integer... @@ -3779,8 +3707,6 @@ class OTAPI_Exec // Returns int32_t: // -1 means error; no message was sent. - // -2 means the message was sent, but the request number must be passed as a - // string, so call GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits // into an integer... @@ -3951,8 +3877,6 @@ class OTAPI_Exec // // Returns int32_t: // -1 means error; no message was sent. - // -2 means the message was sent, but the request number must be passed as a - string, so call GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits into an integer... diff --git a/scripts/ot/ot_utility.ot b/scripts/ot/ot_utility.ot index 5e915a36e2..2363a08020 100644 --- a/scripts/ot/ot_utility.ot +++ b/scripts/ot/ot_utility.ot @@ -675,12 +675,7 @@ def ObjRef::assign(rhs) // -------------------------------------------------------------------- var nRequestNum = OT_API_getNymbox(serverID, nymID) // <===== ATTEMPT TO SEND THE MESSAGE HERE... - if ((-2) == nRequestNum) - { - OT_API_Output(0, strLocation + ": ERROR, not supported. (-2 was returned.)\n") - return (-1) // -2 is also possible at some future date. (If the request number won't fit in an int32_t, this is returned and then you can retrieve the actual number via a separate call.) - } - else if ((-1) == nRequestNum) + if ((-1) == nRequestNum) { OT_API_Output(0, strLocation + ": Failed to send getNymbox message due to error.\n") return (-1) @@ -1838,12 +1833,7 @@ def Utility::sendProcessNymboxLowLevel(serverID, nymID) // bWasSent is an output // -------------------------------------------------------------------- var nRequestNum = OT_API_getBoxReceipt(serverID, nymID, accountID, nBoxType, strTransactionNum) // <===== ATTEMPT TO SEND THE MESSAGE HERE... - if ((-2) == nRequestNum) - { - OT_API_Output(0, strLocation + ": ERROR, not supported. (-2 was returned.)\n") - return false // -2 is also possible at some future date. (If the request number won't fit in an int32_t, this is returned and then you can retrieve the actual number via a separate call.) - } - else if ((-1) == nRequestNum) + if ((-1) == nRequestNum) { OT_API_Output(0, strLocation + ": Failed to send getNymbox message due to error.\n") return false @@ -2218,12 +2208,7 @@ def Utility::sendProcessNymboxLowLevel(serverID, nymID) // bWasSent is an output // -------------------------------------------------------------------- var nRequestNum = OT_API_getTransactionNumber(serverID, nymID) // <===== ATTEMPT TO SEND THE MESSAGE HERE... - if ((-2) == nRequestNum) - { - OT_API_Output(0, strLocation + ": ERROR, not supported. (-2 was returned.)\n") - return (-1) // -2 is also possible at some future date. (If the request number won't fit in an int32_t, this is returned and then you can retrieve the actual number via a separate call.) - } - else if ((-1) == nRequestNum) + if ((-1) == nRequestNum) { OT_API_Output(0, strLocation + ": Failed to send getNymbox message due to error.\n") return (-1) @@ -2882,12 +2867,7 @@ def Utility::sendProcessNymboxLowLevel(serverID, nymID) // bWasSent is an output var nRequestNum = OT_API_getAccountFiles(serverID, nymID, accountID) // <===== ATTEMPT TO SEND MESSAGE - if ((-2) == nRequestNum) - { - OT_API_Output(0, strLocation + ": ERROR, not supported. (-2 was returned.)\n") - return (-1) // -2 is also possible at some future date. (If the request number won't fit in an int32_t, this is returned and then you can retrieve the actual number via a separate call.) - } - else if ((-1) == nRequestNum) + if ((-1) == nRequestNum) { OT_API_Output(0, strLocation + ": Failed to send getAccountFiles message due to error.\n") return (-1) @@ -3053,12 +3033,7 @@ def Utility::sendProcessNymboxLowLevel(serverID, nymID) // bWasSent is an output var nRequestNum = OT_API_getAccount(serverID, nymID, accountID) // <===== ATTEMPT TO SEND THE MESSAGE HERE... - if ((-2) == nRequestNum) - { - OT_API_Output(0, strLocation + ": ERROR, not supported. (-2 was returned.)\n") - return (-1) // -2 is also possible at some future date. (If the request number won't fit in an int32_t, this is returned and then you can retrieve the actual number via a separate call.) - } - else if ((-1) == nRequestNum) + if ((-1) == nRequestNum) { OT_API_Output(0, strLocation + ": Failed to send getAccount message due to error.\n") return (-1) @@ -3203,12 +3178,7 @@ def Utility::sendProcessNymboxLowLevel(serverID, nymID) // bWasSent is an output // -------------------------------------------------------------------- var nRequestNum = OT_API_getInbox(serverID, nymID, accountID) // <===== ATTEMPT TO SEND THE MESSAGE HERE... - if ((-2) == nRequestNum) - { - OT_API_Output(0, strLocation + ": ERROR, not supported. (-2 was returned.)\n") - return (-1) // -2 is also possible at some future date. (If the request number won't fit in an int32_t, this is returned and then you can retrieve the actual number via a separate call.) - } - else if ((-1) == nRequestNum) // if the requestNumber returned by the send-attempt is -1, that means it DIDN'T SEND (error) + if ((-1) == nRequestNum) // if the requestNumber returned by the send-attempt is -1, that means it DIDN'T SEND (error) { OT_API_Output(0, strLocation + ": Failed to send getInbox message due to error.\n") return (-1) @@ -3331,12 +3301,7 @@ def Utility::sendProcessNymboxLowLevel(serverID, nymID) // bWasSent is an output // -------------------------------------------------------------------- var nRequestNum = OT_API_getOutbox(serverID, nymID, accountID) // <===== ATTEMPT TO SEND THE MESSAGE HERE... - if ((-2) == nRequestNum) - { - OT_API_Output(0, strLocation + ": ERROR, not supported. (-2 was returned.)\n") - return (-1) // -2 is also possible at some future date. (If the request number won't fit in an int32_t, this is returned and then you can retrieve the actual number via a separate call.) - } - else if ((-1) == nRequestNum) // if the requestNumber returned by the send-attempt is -1, that means it DIDN'T SEND (error) + if ((-1) == nRequestNum) // if the requestNumber returned by the send-attempt is -1, that means it DIDN'T SEND (error) { OT_API_Output(0, strLocation + ": Failed to send getOutbox message due to error.\n") return (-1) @@ -3409,4 +3374,4 @@ def Utility::sendProcessNymboxLowLevel(serverID, nymID) // bWasSent is an output - \ No newline at end of file + diff --git a/scripts/ot/otapi.ot b/scripts/ot/otapi.ot index c66c4d4617..c53c0bd261 100644 --- a/scripts/ot/otapi.ot +++ b/scripts/ot/otapi.ot @@ -695,15 +695,6 @@ theFunction.nRequestNum = 0 } - else if (nRun == (-2)) // -2 is also possible at some future date. (If the request number won't fit in an int32_t, this is returned and then you can retrieve the actual number via a separate call.) - { - OT_API_Output(0, strLocation + ": ERROR, not supported. (-2 was returned.)\n") - - // TODO: Have an OT API call here, which retrieves the request number - // (It must be too large to fit into an integer, which is why this happened.) - - theFunction.nRequestNum = (-1) - } else { theFunction.nRequestNum = nRun diff --git a/src/client/OTAPI_Exec.cpp b/src/client/OTAPI_Exec.cpp index d45aabac70..f560219679 100644 --- a/src/client/OTAPI_Exec.cpp +++ b/src/client/OTAPI_Exec.cpp @@ -1991,8 +1991,6 @@ bool OTAPI_Exec::DoesBoxReceiptExist( // Returns int32_t: // -1 means error; no message was sent. -// -2 means the message was sent, but the request number must be passed as a -// string, so call OTAPI_Exec::GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits into // an integer... @@ -2052,8 +2050,6 @@ int32_t OTAPI_Exec::getBoxReceipt( // Returns int32_t: // -1 means error; no message was sent. -// -2 means the message was sent, but the request number must be passed as a -// string, so call OTAPI_Exec::GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits into // an integer... @@ -4876,10 +4872,10 @@ std::string OTAPI_Exec::GetAccountWallet_NymID(const std::string& THE_ID) const WRITE A CHEQUE --- (Returns the cheque in string form.) -==> OTAPI_Exec::WriteCheque() internally constructs an OTCheque and issues it, +==> OTAPI_Exec::WriteCheque() internally constructs an Cheque and issues it, like so: -OTCheque theCheque( SERVER_ID, ASSET_TYPE_ID ); +Cheque theCheque( SERVER_ID, ASSET_TYPE_ID ); theCheque.IssueCheque( AMOUNT // The amount of the cheque, in string form, which OTAPI @@ -7240,8 +7236,6 @@ std::string OTAPI_Exec::Party_GetAgentID(const std::string& THE_CONTRACT, // // Returns int32_t: // -1 means error; no message was sent. -// -2 means the message was sent, but the request number must be passed as a -// string, so call OTAPI_Exec::GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits into // an integer... @@ -7278,8 +7272,6 @@ int32_t OTAPI_Exec::activateSmartContract( // // Returns int32_t: // -1 means error; no message was sent. -// -2 means the message was sent, but the request number must be passed as a -// string, so call OTAPI_Exec::GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits into // an integer... @@ -12585,8 +12577,6 @@ bool OTAPI_Exec::Wallet_ImportPurse(const std::string& SERVER_ID, // // Returns int32_t: // -1 means error; no message was sent. -// -2 means the message was sent, but the request number must be passed as a -// string, so call OTAPI_Exec::GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits into // an integer... @@ -13098,8 +13088,6 @@ int64_t OTAPI_Exec::Basket_GetMemberMinimumTransferAmount( // Returns int32_t: // -1 means error; no message was sent. -// -2 means the message was sent, but the request number must be passed as a -// string, so call OTAPI_Exec::GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits into // an integer... @@ -13125,8 +13113,6 @@ int32_t OTAPI_Exec::checkServerID(const std::string& SERVER_ID, // Returns int32_t: // -1 means error; no message was sent. -// -2 means the message was sent, but the request number must be passed as a -// string, so call OTAPI_Exec::GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits into // an integer... @@ -13152,8 +13138,6 @@ int32_t OTAPI_Exec::createUserAccount(const std::string& SERVER_ID, // Returns int32_t: // -1 means error; no message was sent. -// -2 means the message was sent, but the request number must be passed as a -// string, so call OTAPI_Exec::GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits into // an integer... @@ -13243,8 +13227,6 @@ int64_t OTAPI_Exec::Message_GetUsageCredits( // Returns int32_t: // -1 means error; no message was sent. -// -2 means the message was sent, but the request number must be passed as a -// string, so call OTAPI_Exec::GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits into // an integer... @@ -13289,8 +13271,6 @@ int32_t OTAPI_Exec::usageCredits(const std::string& SERVER_ID, // Returns int32_t: // -1 means error; no message was sent. -// -2 means the message was sent, but the request number must be passed as a -// string, so call OTAPI_Exec::GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits into // an integer... @@ -13322,8 +13302,6 @@ int32_t OTAPI_Exec::checkUser(const std::string& SERVER_ID, // Returns int32_t: // -1 means error; no message was sent. -// -2 means the message was sent, but the request number must be passed as a -// string, so call OTAPI_Exec::GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits into // an integer... @@ -13368,8 +13346,6 @@ int32_t OTAPI_Exec::sendUserMessage(const std::string& SERVER_ID, // Returns int32_t: // -1 means error; no message was sent. -// -2 means the message was sent, but the request number must be passed as a -// string, so call OTAPI_Exec::GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits into // an integer... @@ -13494,8 +13470,6 @@ int32_t OTAPI_Exec::getRequest(const std::string& SERVER_ID, // Returns int32_t: // -1 means error; no message was sent. -// -2 means the message was sent, but the request number must be passed as a -// string, so call OTAPI_Exec::GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits into // an integer... @@ -13528,8 +13502,6 @@ int32_t OTAPI_Exec::issueAssetType(const std::string& SERVER_ID, // Returns int32_t: // -1 means error; no message was sent. -// -2 means the message was sent, but the request number must be passed as a -// string, so call OTAPI_Exec::GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits into // an integer... @@ -13561,8 +13533,6 @@ int32_t OTAPI_Exec::getContract(const std::string& SERVER_ID, // Returns int32_t: // -1 means error; no message was sent. -// -2 means the message was sent, but the request number must be passed as a -// string, so call OTAPI_Exec::GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits into // an integer... @@ -13594,8 +13564,6 @@ int32_t OTAPI_Exec::getMint(const std::string& SERVER_ID, // Returns int32_t: // -1 means error; no message was sent. -// -2 means the message was sent, but the request number must be passed as a -// string, so call OTAPI_Exec::GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits into // an integer... @@ -13628,8 +13596,6 @@ int32_t OTAPI_Exec::createAssetAccount(const std::string& SERVER_ID, // Sends a message to the server to retrieve latest copy of an asset acct. // Returns int32_t: // -1 means error; no message was sent. -// -2 means the message was sent, but the request number must be passed as a -// string, so call OTAPI_Exec::GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits into // an integer... @@ -13662,8 +13628,6 @@ int32_t OTAPI_Exec::getAccount(const std::string& SERVER_ID, // Sends a message to the server to retrieve latest copy of an asset acct. // Returns int32_t: // -1 means error; no message was sent. -// -2 means the message was sent, but the request number must be passed as a -// string, so call OTAPI_Exec::GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits into // an integer... @@ -13808,8 +13772,6 @@ std::string OTAPI_Exec::AddBasketCreationItem( // // Returns int32_t: // -1 means error; no message was sent. -// -2 means the message was sent, but the request number must be passed as a -// string, so call OTAPI_Exec::GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits into // an integer... @@ -13972,8 +13934,6 @@ std::string OTAPI_Exec::AddBasketExchangeItem( // // Returns int32_t: // -1 means error; no message was sent. -// -2 means the message was sent, but the request number must be passed as a -// string, so call OTAPI_Exec::GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits into // an integer... @@ -14020,8 +13980,6 @@ int32_t OTAPI_Exec::exchangeBasket( // Returns int32_t: // -1 means error; no message was sent. -// -2 means the message was sent, but the request number must be passed as a -// string, so call OTAPI_Exec::GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits into // an integer... @@ -14047,8 +14005,6 @@ int32_t OTAPI_Exec::getTransactionNumber(const std::string& SERVER_ID, // Returns int32_t: // -1 means error; no message was sent. -// -2 means the message was sent, but the request number must be passed as a -// string, so call OTAPI_Exec::GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits into // an integer... @@ -14085,8 +14041,6 @@ int32_t OTAPI_Exec::notarizeWithdrawal(const std::string& SERVER_ID, // Returns int32_t: // -1 means error; no message was sent. -// -2 means the message was sent, but the request number must be passed as a -// string, so call OTAPI_Exec::GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits into // an integer... @@ -14124,8 +14078,6 @@ int32_t OTAPI_Exec::notarizeDeposit(const std::string& SERVER_ID, // Returns int32_t: // -1 means error; no message was sent. -// -2 means the message was sent, but the request number must be passed as a -// string, so call OTAPI_Exec::GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits into // an integer... @@ -14173,8 +14125,6 @@ int32_t OTAPI_Exec::notarizeTransfer(const std::string& SERVER_ID, // Returns int32_t: // -1 means error; no message was sent. -// -2 means the message was sent, but the request number must be passed as a -// string, so call OTAPI_Exec::GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits into // an integer... @@ -14205,8 +14155,6 @@ int32_t OTAPI_Exec::getInbox(const std::string& SERVER_ID, // Returns int32_t: // -1 means error; no message was sent. -// -2 means the message was sent, but the request number must be passed as a -// string, so call OTAPI_Exec::GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits into // an integer... @@ -14232,8 +14180,6 @@ int32_t OTAPI_Exec::getNymbox(const std::string& SERVER_ID, // Returns int32_t: // -1 means error; no message was sent. -// -2 means the message was sent, but the request number must be passed as a -// string, so call OTAPI_Exec::GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits into // an integer... @@ -14264,8 +14210,6 @@ int32_t OTAPI_Exec::getOutbox(const std::string& SERVER_ID, // Returns int32_t: // -1 means error; no message was sent. -// -2 means the message was sent, but the request number must be passed as a -// string, so call OTAPI_Exec::GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits into // an integer... @@ -14339,8 +14283,6 @@ int32_t OTAPI_Exec::processNymbox(const std::string& SERVER_ID, // Returns int32_t: // -1 means error; no message was sent. -// -2 means the message was sent, but the request number must be passed as a -// string, so call OTAPI_Exec::GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits into // an integer... @@ -14444,8 +14386,6 @@ int32_t OTAPI_Exec::payDividend( // Returns int32_t: // -1 means error; no message was sent. -// -2 means the message was sent, but the request number must be passed as a -// string, so call OTAPI_Exec::GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits into // an integer... @@ -14487,8 +14427,6 @@ int32_t OTAPI_Exec::depositCheque(const std::string& SERVER_ID, // // Returns int32_t: // -1 means error; no message was sent. -// -2 means the message was sent, but the request number must be passed as a -// string, so call OTAPI_Exec::GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits into // an integer... @@ -14524,8 +14462,6 @@ int32_t OTAPI_Exec::depositPaymentPlan( // // Returns int32_t: // -1 means error; no message was sent. -// -2 means the message was sent, but the request number must be passed as a -// string, so call OTAPI_Exec::GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits into // an integer... @@ -14568,8 +14504,6 @@ int32_t OTAPI_Exec::killMarketOffer(const std::string& SERVER_ID, // // Returns int32_t: // -1 means error; no message was sent. -// -2 means the message was sent, but the request number must be passed as a -// string, so call OTAPI_Exec::GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits into // an integer... @@ -14611,8 +14545,6 @@ int32_t OTAPI_Exec::killPaymentPlan(const std::string& SERVER_ID, // // Returns int32_t: // -1 means error; no message was sent. -// -2 means the message was sent, but the request number must be passed as a -// string, so call OTAPI_Exec::GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits into // an integer... @@ -14729,8 +14661,6 @@ int32_t OTAPI_Exec::issueMarketOffer( // Returns int32_t: // -1 means error; no message was sent. -// -2 means the message was sent, but the request number must be passed as a -// string, so call OTAPI_Exec::GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits into // an integer... @@ -14756,8 +14686,6 @@ int32_t OTAPI_Exec::getMarketList(const std::string& SERVER_ID, // Returns int32_t: // -1 means error; no message was sent. -// -2 means the message was sent, but the request number must be passed as a -// string, so call OTAPI_Exec::GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits into // an integer... @@ -14798,8 +14726,6 @@ int32_t OTAPI_Exec::getMarketOffers(const std::string& SERVER_ID, // Returns int32_t: // -1 means error; no message was sent. -// -2 means the message was sent, but the request number must be passed as a -// string, so call OTAPI_Exec::GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits into // an integer... @@ -14831,8 +14757,6 @@ int32_t OTAPI_Exec::getMarketRecentTrades(const std::string& SERVER_ID, // Returns int32_t: // -1 means error; no message was sent. -// -2 means the message was sent, but the request number must be passed as a -// string, so call OTAPI_Exec::GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits into // an integer... @@ -15204,8 +15128,6 @@ bool OTAPI_Exec::ResyncNymWithServer(const std::string& SERVER_ID, // Returns int32_t: // -1 means error; no message was sent. -// -2 means the message was sent, but the request number must be passed as a -// string, so call OTAPI_Exec::GetLargeRequestNum. // 0 means NO error, but also: no message was sent. // >0 means NO error, and the message was sent, and the request number fits into // an integer... diff --git a/src/client/ot_otapi_ot.cpp b/src/client/ot_otapi_ot.cpp index b55f870d60..95a5714d18 100644 --- a/src/client/ot_otapi_ot.cpp +++ b/src/client/ot_otapi_ot.cpp @@ -806,19 +806,6 @@ OT_OTAPI_OT int32_t theFunction.nRequestNum = 0; } - else if (nRun == (-2)) // -2 is also possible at some future date. (If the - // request number won't fit in an int32_t, this is - // returned and then you can retrieve the actual - // number via a separate call.) - { - otOut << strLocation << ": ERROR, not supported. (-2 was returned.)\n"; - - // TODO: Have an OT API call here, which retrieves the request number - // (It must be too large to fit into an integer, which is why this - // happened.) - - theFunction.nRequestNum = -1; - } else { theFunction.nRequestNum = nRun; } diff --git a/src/client/ot_utility_ot.cpp b/src/client/ot_utility_ot.cpp index b14ca8f510..e945b441f8 100644 --- a/src/client/ot_utility_ot.cpp +++ b/src/client/ot_utility_ot.cpp @@ -497,12 +497,6 @@ OT_UTILITY_OT int32_t Utility::getNymboxLowLevel(const string& serverID, int32_t nRequestNum = OTAPI_Wrap::getNymbox( serverID, nymID); // <===== ATTEMPT TO SEND THE MESSAGE HERE...; - if (-2 == nRequestNum) { - otOut << strLocation << ": ERROR, not supported. (-2 was returned.)\n"; - return -1; // -2 is also possible at some future date. (If the request - // number won't fit in an int32_t, this is returned and then - // you can retrieve the actual number via a separate call.); - } if (-1 == nRequestNum) { otOut << strLocation << ": Failed to send getNymbox message due to error.\n"; @@ -1887,13 +1881,6 @@ OT_UTILITY_OT bool Utility::getBoxReceiptLowLevel( int32_t nRequestNum = OTAPI_Wrap::getBoxReceipt( serverID, nymID, accountID, nBoxType, strTransactionNum); // <===== ATTEMPT TO SEND THE MESSAGE HERE...; - if (-2 == nRequestNum) { - otOut << strLocation << ": ERROR, not supported. (-2 was returned.)\n"; - return false; // -2 is also possible at some future date. (If the - // request number won't fit in an int32_t, this is - // returned and then you can retrieve the actual number - // via a separate call.); - } if (-1 == nRequestNum) { otOut << strLocation << ": Failed to send getNymbox message due to error.\n"; @@ -2380,12 +2367,6 @@ OT_UTILITY_OT int32_t int32_t nRequestNum = OTAPI_Wrap::getTransactionNumber( serverID, nymID); // <===== ATTEMPT TO SEND THE MESSAGE HERE...; - if (-2 == nRequestNum) { - otOut << strLocation << ": ERROR, not supported. (-2 was returned.)\n"; - return -1; // -2 is also possible at some future date. (If the request - // number won't fit in an int32_t, this is returned and then - // you can retrieve the actual number via a separate call.) - } if (-1 == nRequestNum) { otOut << strLocation << ": Failed to send getNymbox message due to error.\n"; @@ -3116,12 +3097,6 @@ OT_UTILITY_OT int32_t int32_t nRequestNum = OTAPI_Wrap::getAccountFiles( serverID, nymID, accountID); // <===== ATTEMPT TO SEND MESSAGE; - if (-2 == nRequestNum) { - otOut << strLocation << ": ERROR, not supported. (-2 was returned.)\n"; - return -1; // -2 is also possible at some future date. (If the request - // number won't fit in an int32_t, this is returned and then - // you can retrieve the actual number via a separate call.) - } if (-1 == nRequestNum) { otOut << strLocation << ": Failed to send getAccountFiles message due to error.\n"; @@ -3305,12 +3280,6 @@ OT_UTILITY_OT int32_t serverID, nymID, accountID); // <===== ATTEMPT TO SEND THE MESSAGE HERE...; - if ((-2) == nRequestNum) { - otOut << strLocation << ": ERROR, not supported. (-2 was returned.)\n"; - return -1; // -2 is also possible at some future date. (If the request - // number won't fit in an int32_t, this is returned and then - // you can retrieve the actual number via a separate call.) - } if (-1 == nRequestNum) { otOut << strLocation << ": Failed to send getAccount message due to error.\n"; @@ -3470,12 +3439,6 @@ OT_UTILITY_OT int32_t serverID, nymID, accountID); // <===== ATTEMPT TO SEND THE MESSAGE HERE...; - if ((-2) == nRequestNum) { - otOut << strLocation << ": ERROR, not supported. (-2 was returned.)\n"; - return -1; // -2 is also possible at some future date. (If the request - // number won't fit in an int32_t, this is returned and then - // you can retrieve the actual number via a separate call.) - } if (-1 == nRequestNum) // if the requestNumber returned by the send-attempt // is -1, that means it DIDN'T SEND (error) { @@ -3623,13 +3586,7 @@ OT_UTILITY_OT int32_t int32_t nRequestNum = OTAPI_Wrap::getOutbox( serverID, nymID, - accountID); // <===== ATTEMPT TO SEND THE MESSAGE HERE...; - if (-2 == nRequestNum) { - otOut << strLocation << ": ERROR, not supported. (-2 was returned.)\n"; - return -1; // -2 is also possible at some future date. (If the request - // number won't fit in an int32_t, this is returned and then - // you can retrieve the actual number via a separate call.) - } + accountID); // <===== ATTEMPT TO SEND THE MESSAGE HERE...; if (-1 == nRequestNum) // if the requestNumber returned by the send-attempt // is -1, that means it DIDN'T SEND (error) {