public string[] GetWordsFromTag(FacebookPhotoTag tag) { if (tag == null) { return(null); } return(GetWords(tag.Text, (tag.Contact != null) ? tag.Contact.Name : "")); }
private FacebookPhotoTag _DeserializePhotoTag(JSON_OBJECT jsonTag) { float xcoord = (_SafeGetSingle(jsonTag, "xcoord") ?? 0) / 100; float ycoord = (_SafeGetSingle(jsonTag, "ycoord") ?? 0) / 100; xcoord = Math.Max(Math.Min(1, xcoord), 0); ycoord = Math.Max(Math.Min(1, ycoord), 0); var tag = new FacebookPhotoTag(_service) { PhotoId = _SafeGetId(jsonTag, "pid"), ContactId = _SafeGetId(jsonTag, "subject"), Text = _SafeGetString(jsonTag, "text"), Offset = new System.Windows.Point(xcoord, ycoord), }; return(tag); }