Example #1
0
        protected override async Task WriteSyncPostResponseObjectAsync(JsonTextWriter jsonWriter, ITraktSyncHistoryRemovePostResponseNotFoundGroup obj, CancellationToken cancellationToken = default)
        {
            await base.WriteSyncPostResponseObjectAsync(jsonWriter, obj, cancellationToken).ConfigureAwait(false);

            if (obj.HistoryIds != null)
            {
                await jsonWriter.WritePropertyNameAsync(JsonProperties.SYNC_HISTORY_REMOVE_POST_RESPONSE_NOT_FOUND_GROUP_PROPERTY_NAME_IDS, cancellationToken).ConfigureAwait(false);

                await JsonWriterHelper.WriteUnsignedLongArrayAsync(jsonWriter, obj.HistoryIds, cancellationToken).ConfigureAwait(false);
            }
        }
Example #2
0
        protected override async Task WriteSyncHistoryObjectAsync(JsonTextWriter jsonWriter, ITraktSyncHistoryRemovePost obj, CancellationToken cancellationToken = default)
        {
            await base.WriteSyncHistoryObjectAsync(jsonWriter, obj, cancellationToken).ConfigureAwait(false);

            if (obj.HistoryIds != null)
            {
                await jsonWriter.WritePropertyNameAsync(JsonProperties.PROPERTY_NAME_IDS, cancellationToken).ConfigureAwait(false);

                await JsonWriterHelper.WriteUnsignedLongArrayAsync(jsonWriter, obj.HistoryIds, cancellationToken).ConfigureAwait(false);
            }
        }