internal bool SafeMerge(FacebookImage other) { bool modified = false; if (other == null) { return(false); } if (_normal == null && other._normal != null) { _normal = other._normal; modified = true; } if (_small == null && other._small != null) { _small = other._small; modified = true; } if (_square == null && other._square != null) { _square = other._square; modified = true; } if (_big == null && other._big != null) { _big = other._big; modified = true; } return(modified); }
// Light constructor for Attachment provided photos internal FacebookPhoto(FacebookService service, FacebookObjectId albumId, FacebookObjectId photoId, Uri source) { SourceService = service; AlbumId = albumId; PhotoId = photoId; Created = default(DateTime); Link = null; Image = new FacebookImage(service, source); RawComments = new FBMergeableCollection <ActivityComment>(); RawTags = new FBMergeableCollection <FacebookPhotoTag>(); }
internal bool PartiallyEquals(FacebookImage other) { if (other == null) { return(false); } return(other._big == _big || other._normal == _normal || other._small == _small || other._square == _square); }
public bool Equals(FacebookImage other) { if (other == null) { return(false); } return(other._big == _big && other._normal == _normal && other._small == _small && other._square == _square); }
public FacebookImage Clone() { var img = new FacebookImage(SourceService); img._isSquarish = _isSquarish; img._big = _big; img._bigWR = _bigWR; img._normal = _normal; img._normalWR = _normalWR; img._small = _small; img._smallWR = _smallWR; img._square = _square; img._squareWR = _squareWR; return(img); }
internal bool MergeImage(FacebookImage otherImage) { bool modified = false; if (Image != null) { if (Image.SafeMerge(otherImage)) { Image = Image.Clone(); modified = true; } } else { Image = otherImage; modified = true; } _NotifyPropertyChanged("Image"); return(modified); }