Add support for fetching and storing reply text
- Add database migration and update logic for replyText column in Notes - Implement batch collection of missing reply text via Tumblr API - Add new API integration to fetch reply text for replies - Enhance DataAccess with methods to query/update replyText - Update CLI: -replies now collects and stores reply text - Improve logging (archive logs/), error handling, and output - Remove TL.db from source control
This commit is contained in:
@@ -83,4 +83,37 @@ namespace URLNotesGrabberCORE
|
||||
|
||||
public string rawJson { get; set; }
|
||||
}
|
||||
|
||||
// Classes for Posts API endpoint (for reply_text)
|
||||
public class PostsResponse
|
||||
{
|
||||
public List<Post> posts { get; set; }
|
||||
}
|
||||
|
||||
public class Post
|
||||
{
|
||||
public long id { get; set; }
|
||||
public List<NoteDetail> notes { get; set; }
|
||||
}
|
||||
|
||||
public class NoteDetail
|
||||
{
|
||||
public long timestamp { get; set; }
|
||||
public string type { get; set; }
|
||||
public string blog_name { get; set; }
|
||||
public string reply_text { get; set; }
|
||||
}
|
||||
|
||||
public class PostsRoot
|
||||
{
|
||||
public Meta meta { get; set; }
|
||||
[JsonConverter(typeof(EmptyArrayOrObjectConverter<PostsResponse>))]
|
||||
public PostsResponse response { get; set; }
|
||||
|
||||
public string statusCode { get; set; }
|
||||
|
||||
public int retryInSeconds { get; set; }
|
||||
|
||||
public string rawJson { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user