Add byLikes tracking to blogs and posts in DataAccess
Introduce byLikes parameter to AddBlog, AddPost, and UpdatePost methods, updating SQL logic and schema to store this flag. Ensure all relevant calls and SQL statements handle the new ByLikes column, allowing tracking of whether entries were added "by likes." Also standardize hasImage boolean handling in SQL. Add Tumblr likes fetching and DB tracking support Implemented -likes command to fetch/process Tumblr blog likes. Added DB columns and logic to track likes progress (LikesPulled, LikesCursor). Integrated API call, pagination, and rate-limit handling for likes. Extended AddBlog/AddPost/UpdatePost for likes-related fields. Added DateModified tracking to DB operations. Improved error handling and updated launch/app settings.
This commit is contained in:
@@ -58,6 +58,8 @@ namespace URLNotesGrabberCORE
|
||||
public string mode { get; set; }
|
||||
public string id { get; set; }
|
||||
public string before_timestamp { get; set; }
|
||||
public string before { get; set; }
|
||||
public string after { get; set; }
|
||||
}
|
||||
|
||||
public class Response
|
||||
@@ -116,4 +118,22 @@ namespace URLNotesGrabberCORE
|
||||
|
||||
public string rawJson { get; set; }
|
||||
}
|
||||
|
||||
public class LikesResponse
|
||||
{
|
||||
public List<dynamic> liked_posts { get; set; }
|
||||
public int liked_count { get; set; }
|
||||
public Links _links { get; set; }
|
||||
}
|
||||
|
||||
public class LikesRoot
|
||||
{
|
||||
public Meta meta { get; set; }
|
||||
[JsonConverter(typeof(EmptyArrayOrObjectConverter<LikesResponse>))]
|
||||
public LikesResponse 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