#318
- AccountLogin: removed custom response code processing which shows
alert to users (now this functionality is inside response validation)
- AccountLogin, AccountSignup, AlbumsFragment.AlbumsAdapter,
PhotoUtils.DeletePhotoTask, PhotoUtils.UpdatePhotoTask,
PhotoEndlessAdapter: added api response validation call before
processing
- AlbumsResponse, PhotosResponse, TagsResponse, UploadResponse: added
predefined request type to the super constructor call
- ApiResponse: added new private fields and tag name constant
- ApiResponse: getContentAsString method now stores its result in the
content field so the method may be called few times without a problem
- ApiResponse: added new methods: isSuccess, getJSONObject
- ApiResponse.InvalidApiResponseException: added
- PagedResponse, PhotoResponse, TroveboxResponse,
AccountTroveboxResponse: added requestType parameter to the constructor
- TroveboxApi, AccountTroveboxApi, FakeAccountTroveboxApi: added request
type parameters to the *TroveboxResponse constructor calls where
necessary
- TroveboxApi, AccountTroveboxApi: replaced JSONObject constructors call
with the ApiResponse.getJSONObject method call
- TroveboxResponse.RequestType: added request type enum
- AccountTroveboxResponse: added overrode of getAlertMessage method
which returns localized invalid credentials alert message in case of
response code equals 403
- TroveboxResponse: added invalid response tracking to the constructor
- TroveboxResponse: added new methods: getRequestType, getAlertMessage
- TroveboxResponseUtils: added
- CommonUtils: added error method variation which logs throwable objects
- GuiUtils: added getMessage, alert method variations with message args
- GuiUtils, CommonUtils: added javadoc to some methods
- TrackerUtils: added trackException, trackErrorEvent methods
- strings.xml: added unknonw_error_with_code string constant
- GalleryActivityTest, PhotoDetailsActivityTest, PagedResponseTest,
TroveboxResponseTest: added necessary request type parameters to the
*TroveboxResponse constructor calls