You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AtProtoHttpResult<CreateRecordResponse>createPostResult=awaitagent.Post("Hello world from the past",createdAt:past,cancellationToken:cancellationToken);
136
+
AtProtoHttpResult<CreateRecordResult>createPostResult=awaitagent.Post("Hello world from the past",createdAt:past,cancellationToken:cancellationToken);
AtProtoHttpResult<CreateRecordResponse>createPostResult=awaitagent.Post("Another test post, this time to check replying.",cancellationToken:cancellationToken);
184
+
AtProtoHttpResult<CreateRecordResult>createPostResult=awaitagent.Post("Another test post, this time to check replying.",cancellationToken:cancellationToken);
185
185
if(createPostResult.Succeeded)
186
186
{
187
187
// Let's pretend we didn't just create the post, and we just have the strong reference of the post we want to reply to.
AtProtoHttpResult<CreateRecordResponse>replyToHttpResult=awaitagent.ReplyTo(postToReplyTo,"This is a reply.",cancellationToken:cancellationToken);
190
+
AtProtoHttpResult<CreateRecordResult>replyToHttpResult=awaitagent.ReplyTo(postToReplyTo,"This is a reply.",cancellationToken:cancellationToken);
191
191
if(!replyToHttpResult.Succeeded)
192
192
{
193
193
Console.ForegroundColor=ConsoleColor.Red;
194
194
Console.WriteLine($"{replyToHttpResult.StatusCode} occurred when creating the post.");
195
195
return;
196
196
}
197
197
198
-
AtProtoHttpResult<CreateRecordResponse>replyToReplyHttpResult=awaitagent.ReplyTo(replyToHttpResult.Result!.StrongReference,"This is a reply to the reply.",cancellationToken:cancellationToken);
198
+
AtProtoHttpResult<CreateRecordResult>replyToReplyHttpResult=awaitagent.ReplyTo(replyToHttpResult.Result!.StrongReference,"This is a reply to the reply.",cancellationToken:cancellationToken);
AtProtoHttpResult<CreateRecordResponse>createPostResult=awaitagent.Post("Hello world with an image.",imageUploadResult.Result,cancellationToken:cancellationToken);
250
+
AtProtoHttpResult<CreateRecordResult>createPostResult=awaitagent.Post("Hello world with an image.",imageUploadResult.Result,cancellationToken:cancellationToken);
0 commit comments