Skip to content

Add Initial Objects#13

Open
JonahCWilson wants to merge 1 commit into
overdrive_kotlinfrom
overdrive_class_objects
Open

Add Initial Objects#13
JonahCWilson wants to merge 1 commit into
overdrive_kotlinfrom
overdrive_class_objects

Conversation

@JonahCWilson

@JonahCWilson JonahCWilson commented Apr 23, 2026

Copy link
Copy Markdown

Initial class definitions for some of the objects in the OverDrive Indexer.

What I've learned:

VAR is used for values that are mutable and can be reassigned.
VAL is used for Immutable Values which are only assigned once.

I'm writing most of this by hand rather than have AI generate it, as that's how you learn, but I have been attempting to do it is the most "Kotlin-ish" way possible. E.g. while it's entirely possible to write getters and settings for every property, you normally shouldn't unless there's specific logic you need (see the id field in OverDriveRecordInfo)

The OverDriveAPIConnection was the start of a thought process, we should move that logic into its own class and isolate it. I think we can also write some logic to separate out the interspersed PreparedStatements.

@lathomas64

Copy link
Copy Markdown

Makes sense to me. Like the logic behind the API connection class. If for no other reason then making it easier if we have to move to a v2 api in the future being able to change the version in one place instead of several.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants