Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private class AsyncCreateQueue extends AsyncTask<String, Integer,String> {
- ServiceApi serviceApi;
- List<InvitationImpl> invitations;
- public AsyncCreateQueue(ServiceApi serviceApi, List<InvitationImpl> invitations) {
- this.serviceApi = serviceApi;
- this.invitations = invitations;
- }
- @Override
- protected String doInBackground(String... arg) {
- try {
- serviceApi.createNewQueue(arg[0], arg[1],invitations);
- } catch (Exception e) {
- return e.getMessage();
- }
- return "ok";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement