public SocialPostData GetPostData() { SocialPostData postData = new SocialPostData(); if (!String.IsNullOrWhiteSpace(Name)) postData.Add("name", Name); if (!String.IsNullOrWhiteSpace(Message)) postData.Add("message", Message); if (Privacy != null && Privacy.Value != FacebookPrivacy.Default) postData.Add("privacy", Privacy.ToString()); return postData; }
public SocialPostData GetPostData() { SocialPostData postData = new SocialPostData(); if (!String.IsNullOrWhiteSpace(Source)) postData.AddFile("source", Source); if (!String.IsNullOrWhiteSpace(Url)) postData.Add("url", Url); if (!String.IsNullOrWhiteSpace(Message)) postData.Add("message", Message); if (!String.IsNullOrWhiteSpace(Place)) postData.Add("place", Place); if (NoStory) postData.Add("no_story", "true"); return postData; }
public SocialPostData GetPostData() { SocialPostData postData = new SocialPostData(); if (!String.IsNullOrWhiteSpace(Link)) postData.Add("link", Link); if (!String.IsNullOrWhiteSpace(Description)) postData.Add("description", Description); if (!String.IsNullOrWhiteSpace(Message)) postData.Add("message", Message); if (!String.IsNullOrWhiteSpace(Name)) postData.Add("name", Name); if (!String.IsNullOrWhiteSpace(Caption)) postData.Add("caption", Caption); return postData; }
public SocialPostData GetPostData() { SocialPostData data = new SocialPostData(); data.Add("status", Status ?? ""); if (ReplyTo != null) data.Add("in_reply_to_status_id", ReplyTo); if (PossiblySensitive) data.Add("possibly_sensitive", "true"); if (Latitude != null) data.Add("lat", Latitude); if (Longitude != null) data.Add("long", Longitude); if (PlaceId != null) data.Add("place_id", PlaceId); if (DisplayCoordinates) data.Add("display_coordinates", "true"); return data; }