streams-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sblack...@apache.org
Subject [20/41] git commit: Added Published/DateTime to UserInfo Activity
Date Thu, 04 Sep 2014 17:12:08 GMT
Added Published/DateTime to UserInfo Activity


Project: http://git-wip-us.apache.org/repos/asf/incubator-streams/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-streams/commit/2d0e63c4
Tree: http://git-wip-us.apache.org/repos/asf/incubator-streams/tree/2d0e63c4
Diff: http://git-wip-us.apache.org/repos/asf/incubator-streams/diff/2d0e63c4

Branch: refs/heads/pp
Commit: 2d0e63c4d177936379018beb70788e15ab54eb5f
Parents: d75fac6
Author: Ryan Ebanks <rebanks@Informations-MacBook-Pro-3.local>
Authored: Thu Aug 14 15:56:03 2014 -0500
Committer: Ryan Ebanks <rebanks@Informations-MacBook-Pro-3.local>
Committed: Thu Aug 14 15:56:03 2014 -0500

----------------------------------------------------------------------
 .../instagram/serializer/InstagramUserInfoSerializer.java        | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/2d0e63c4/streams-contrib/streams-provider-instagram/src/main/java/org/apache/streams/instagram/serializer/InstagramUserInfoSerializer.java
----------------------------------------------------------------------
diff --git a/streams-contrib/streams-provider-instagram/src/main/java/org/apache/streams/instagram/serializer/InstagramUserInfoSerializer.java
b/streams-contrib/streams-provider-instagram/src/main/java/org/apache/streams/instagram/serializer/InstagramUserInfoSerializer.java
index 9acea20..055169b 100644
--- a/streams-contrib/streams-provider-instagram/src/main/java/org/apache/streams/instagram/serializer/InstagramUserInfoSerializer.java
+++ b/streams-contrib/streams-provider-instagram/src/main/java/org/apache/streams/instagram/serializer/InstagramUserInfoSerializer.java
@@ -11,6 +11,8 @@ import org.apache.streams.pojo.json.Actor;
 import org.apache.streams.pojo.json.Image;
 import org.apache.streams.pojo.json.Provider;
 import org.jinstagram.entity.users.basicinfo.UserInfoData;
+import org.joda.time.DateTime;
+import org.joda.time.DateTimeZone;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 import sun.reflect.generics.reflectiveObjects.NotImplementedException;
@@ -46,7 +48,7 @@ public class InstagramUserInfoSerializer implements ActivitySerializer<UserInfoD
         provider.setId(PROVIDER_ID);
         provider.setDisplayName(DISPLAY_NAME);
         activity.setProvider(provider);
-
+        activity.setPublished(DateTime.now().withZone(DateTimeZone.UTC));
         Actor actor = new Actor();
         Image image = new Image();
         image.setUrl(serialized.getProfile_picture());


Mime
View raw message