Example #1
0
 public static void PostActivity(ActivityContent content, PostActivityTarget target, Action <Activity> onSuccess,
                                 Action <GetSocialError> onFailure)
 {
     GetSocialFactory.Bridge.PostActivity(content, target, onSuccess, onFailure);
 }
Example #2
0
 public void PostActivity(ActivityContent content, PostActivityTarget target, Action <Activity> onSuccess, Action <GetSocialError> onFailure)
 {
     CallAsync("Communities.postActivity", GSJson.Serialize(new PostActivityBody {
         Target = target, Content = content
     }), onSuccess, onFailure);
 }
Example #3
0
 public static CreateActivityRequest ToRpc(this ActivityContent content, string lang, PostActivityTarget target)
 {
     return(new CreateActivityRequest
     {
         Target = target.Ids.ToRpc(),
         Properties = content.Properties,
         Content = new Dictionary <string, AFContent>
         {
             { lang, new AFContent
               {
                   Text = content.Text,
                   Button = content.Button?.ToRpc(),
                   Attachments = content.Attachments.ConvertAll(it => it.ToRpc())
               } }
         }
     });
 }
 public TagsQuery InTarget(PostActivityTarget target)
 {
     Target = target;
     return(this);
 }