public ActivityData( string id, string html = null, string text = null, StyleElement parsedText = null, bool? isEditable = null, Uri postUrl = null, int? commentLength = null, CommentData[] comments = null, DateTime? postDate = null, DateTime? editDate = null, ServiceType serviceType = null, PostStatusType? status = null, IAttachable attachedContent = null, ProfileData owner = null, DateTime? getActivityDate = null, ActivityUpdateApiFlag updaterTypes = ActivityUpdateApiFlag.Unloaded) { LoadedApiTypes = updaterTypes; Id = id; IsEditable = isEditable; Html = html; Text = text; ParsedText = parsedText; CommentLength = commentLength; Comments = comments; PostUrl = postUrl; PostDate = postDate; EditDate = editDate; GetActivityDate = getActivityDate; PostStatus = status; Owner = owner; AttachedContent = attachedContent; ServiceType = serviceType; }
//ActivityInfo初期化はこちらの特殊仕様を使う。 //これはActivityInfo用のCommentInfo、CommentInfo用のActivityInfoという無限ループ回避用処置 internal CommentInfo( PlatformClient client, CommentData commentData, ActivityData activityData, ActivityInfo activityInfo) : base(client) { _commentData = commentData; _activityData = activityData; _owner = commentData.Owner != null ? client.People.InternalGetAndUpdateProfile(commentData.Owner) : null; _parentActivity = activityInfo; _talkgadgetBindObjs = new Dictionary<EventHandler, IDisposable>(); }