This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Request: Save user Basic Info | |
Url: https://ritmio.com/api/users/:userId/profile | |
Type: POST | |
Body: | |
{ | |
"name" : "Juan Perez", | |
"role": "influencer", | |
"birthday" : "20/11/1983" | |
} | |
Response: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.etermax.crackme.core.actions.connection; | |
import com.etermax.crackme.core.actions.factory.ChatObservablesContainer; | |
import com.etermax.crackme.core.domain.conversation.ConversationXmppService; | |
import com.etermax.crackme.core.domain.message.MessageXmppService; | |
import com.etermax.crackme.core.domain.processor.PersistOnRepositoryNewMessages; | |
import com.etermax.crackme.core.domain.processor.RetrieveConversationWhenMessageIsOrphan; | |
import com.etermax.crackme.core.domain.processor.UpdateConversationFromMessage; | |
import com.etermax.crackme.core.domain.processor.UpdateLastMessageWhenConversationIsCreated; | |
import com.etermax.crackme.core.domain.sync.SyncXmppService; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.etermax.crackme.core.actions.conversation; | |
import com.etermax.crackme.core.domain.conversation.Conversation; | |
import com.etermax.crackme.core.domain.conversation.ConversationBuilder; | |
import com.etermax.crackme.core.domain.conversation.ConversationRepository; | |
import com.etermax.crackme.core.domain.conversation.ConversationXmppService; | |
import java.util.List; | |
import rx.Observable; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
usage() { | |
echo "Usage: $(basename $0) [package] ..." | |
} | |
app_package=$1 | |
shift | |
if [ -z $app_package ]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Represents the snapshot of the quiz in a determined moment. | |
* With tis information Quiz presenter is able to redraw the quiz screen and continue playing | |
* (if there are time for it) | |
* | |
* @author Lucas Marino | |
*/ | |
public class GameState implements Parcelable { | |
//the current loop I'm running | |
private String currentLoop; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Represents the snapshot of the quiz in a determined moment. | |
* With tis information Quiz presenter is able to redraw the quiz screen and continue playing | |
* (if there are time for it) | |
* | |
* @author Lucas Marino | |
*/ | |
public class GameState implements Parcelable { | |
//the current loop I'm running |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Presenter created to show the quiz flow on a view. | |
* Manages the Quiz LifeCycle | |
* | |
* @author Lucas Marino mailto:[email protected]. | |
*/ | |
public class QuizPresenter implements Presenter { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public claas QuizState implements Parceable { | |
private int currentPromptNumber; | |
private long quizId; | |
private boolean opponentAnswered; | |
private boolean userAnswered; | |
private int loopAccumulatedTime; | |
private long outTimestamp; | |
private String currentPromptLoop; // START, PLAYING, END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"data": [ | |
{ | |
"missionId": 1, | |
"text": "default for mission 2" | |
}, | |
{ | |
"missionId": 1, | |
"text": "specific task for mission 1" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"data": [ | |
{ | |
"id": 143, | |
"spotId": 31, | |
"creationTime": 1430841036176, | |
"npcAvatar": "http://res.cloudinary.com/zlvc/image/upload/c_scale,h_150,r_max,c_thumb,g_face,w_150/npcs/reguu82abmldxsjvcbw6.png", | |
"npcName": "Chris", | |
"npcRole": "Tourist", | |
"modificationTime": 1430843920885, |
NewerOlder