src/main/java/com/google/codeu/data/Datastore.java
/** Stores the Message in Datastore. */
Stores the Message in Datastore.
Stores the Message in Datastore .
public void storeMessage(Message message) {
    Entity messageEntity = new Entity("Message", message.getId().toString());
    messageEntity.setProperty("user", message.getUser());
    messageEntity.setProperty("text", message.getText());
    messageEntity.setProperty("timestamp", message.getTimestamp());
    messageEntity.setProperty("recipient", message.getRecipient());
    messageEntity.setProperty("sentimentScore",message.getSentimentScore());
    messageEntity.setProperty("imageUrl", message.getImageUrl());
    datastore.put(messageEntity);
  }
public void storeMessage ( Message message ) { Entity messageEntity = new Entity ( "Message" , message . getId ( ) . toString ( ) ) ; messageEntity . setProperty ( "user" , message . getUser ( ) ) ; messageEntity . setProperty ( "text" , message . getText ( ) ) ; messageEntity . setProperty ( "timestamp" , message . getTimestamp ( ) ) ; messageEntity . setProperty ( "recipient" , message . getRecipient ( ) ) ; messageEntity . setProperty ( "sentimentScore" , message . getSentimentScore ( ) ) ; messageEntity . setProperty ( "imageUrl" , message . getImageUrl ( ) ) ; datastore . put ( messageEntity ) ; }
Stores the Message in Datastore.
Stores the Message in Datastore .