Package io.getstream.core.models
Class Activity.Builder
- java.lang.Object
-
- io.getstream.core.models.Activity.Builder
-
- Enclosing class:
- Activity
public static final class Activity.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Activity.Builder
actor(java.lang.String actor)
Activity
build()
Activity.Builder
extra(java.util.Map<java.lang.String,java.lang.Object> extra)
Activity.Builder
extraField(java.lang.String key, java.lang.Object value)
Activity.Builder
foreignID(java.lang.String foreignID)
Activity.Builder
fromActivity(Activity activity)
<T> Activity.Builder
fromCustomActivity(T custom)
Activity.Builder
id(java.lang.String id)
Activity.Builder
object(java.lang.String object)
Activity.Builder
origin(java.lang.String origin)
Activity.Builder
score(double score)
Activity.Builder
target(java.lang.String target)
Activity.Builder
time(java.util.Date time)
Activity.Builder
to(FeedID... to)
Activity.Builder
to(java.lang.Iterable<FeedID> to)
Activity.Builder
to(java.util.List<FeedID> to)
Activity.Builder
verb(java.lang.String verb)
-
-
-
Method Detail
-
id
public Activity.Builder id(java.lang.String id)
-
actor
public Activity.Builder actor(java.lang.String actor)
-
verb
public Activity.Builder verb(java.lang.String verb)
-
object
public Activity.Builder object(java.lang.String object)
-
foreignID
public Activity.Builder foreignID(java.lang.String foreignID)
-
target
public Activity.Builder target(java.lang.String target)
-
time
public Activity.Builder time(java.util.Date time)
-
origin
public Activity.Builder origin(java.lang.String origin)
-
to
public Activity.Builder to(java.util.List<FeedID> to)
-
to
public Activity.Builder to(java.lang.Iterable<FeedID> to)
-
to
public Activity.Builder to(FeedID... to)
-
score
public Activity.Builder score(double score)
-
extraField
public Activity.Builder extraField(java.lang.String key, java.lang.Object value)
-
extra
public Activity.Builder extra(java.util.Map<java.lang.String,java.lang.Object> extra)
-
fromActivity
public Activity.Builder fromActivity(Activity activity)
-
fromCustomActivity
public <T> Activity.Builder fromCustomActivity(T custom)
-
build
public Activity build()
-
-