Back to project page PatternAndroid.
The source code is released under:
MIT License
If you think the Android project PatternAndroid listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.twitterclone.model.service; //from w w w .jav a2 s. c o m import com.foxykeep.datadroid.service.RequestService; import com.twitterclone.model.RequestFactory; import com.twitterclone.model.operations.TweetsOperation; public class RestService extends RequestService { @Override public Operation getOperationForType(int requestType) { switch (requestType) { case RequestFactory.REQUEST_TWEETS: return new TweetsOperation(); default: return null; } } }