Closed Bug 1241595 Opened 8 years ago Closed 8 years ago

Refactoring session for the json pushes interface

Categories

(Testing :: mozregression, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: parkouss, Assigned: parkouss)

Details

Attachments

(1 file)

I don't like much the current json pushes interfaces, and in multiple places in the code we (myself :)) used words such as "raw_pushes", or used private methods because the interface of the JSonPushes class is not really good.

I'd like to improve it. I think something really good would be to return instance of custome Push objects, that would cache the json data we get from the servers and provide simple interface on it.
:wlach, I know this is not easy to review. :( I ask you for a quick review, just in case you catch something obvious.

From what I tested, it looks good.

Thanks!
Attachment #8710622 - Flags: review?(wlachance)
Comment on attachment 8710622 [details] [review]
refactoring json-pushes

This looks fine to me.
Attachment #8710622 - Flags: review?(wlachance) → review+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: