Skip to content

Instantly share code, notes, and snippets.

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:
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;
@marinoluck
marinoluck / GetOrCreateCOnversationWith.java
Last active January 15, 2017 21:36
GetOrCreateCOnversationWith
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;
@marinoluck
marinoluck / logcatapp.sh
Created November 14, 2015 06:07 — forked from kevinxucs/logcatapp.sh
Filter logcat by app package name
#!/bin/bash
usage() {
echo "Usage: $(basename $0) [package] ..."
}
app_package=$1
shift
if [ -z $app_package ]; then
@marinoluck
marinoluck / gist:3df2aa7f4270cce3a60e
Created June 24, 2015 21:29
Game state a bit smarter
/**
* 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;
/**
* 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
@marinoluck
marinoluck / gist:836468a8f6010e9aca91
Last active August 29, 2015 14:23
Quiz Presenter
/**
* Presenter created to show the quiz flow on a view.
* Manages the Quiz LifeCycle
*
* @author Lucas Marino mailto:marinoluck@gmail.com.
*/
public class QuizPresenter implements Presenter {
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
@marinoluck
marinoluck / gist:988603ed888389b4e257
Last active August 29, 2015 14:22
Tasks file example
{
"data": [
{
"missionId": 1,
"text": "default for mission 2"
},
{
"missionId": 1,
"text": "specific task for mission 1"
},
@marinoluck
marinoluck / gist:89c84b41e949b9841428
Last active August 29, 2015 14:20
voice chat GET list
{
"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,