IssueSubscription

com.worxbend.codeberg4s.issues.IssueSubscription
final case class IssueSubscription

Whether the authenticated account is following one issue — what GET /repos/{owner}/{repo}/issues/{index}/subscriptions/check answers.

'''Derived from spec/swagger.v1.json''' — Forgejo's WatchInfo, the same model the repository-watch endpoints return. It is decoded into a type of this group's own rather than shared, because the two are owned by different groups per docs/LEDGER.md and because the URLs on it point at an issue here and at a repository there.

'''subscribed and ignored are not opposites.''' An account that has explicitly muted an issue is ignored and not subscribed; one that has never interacted is neither. Both are booleans on the wire and both are kept, rather than folded into one three-valued type, because the wire does not promise they are exclusive and a model that assumed it would have to decide what to do when they are not.

One wire field is dropped: reason is declared in the spec with '''no type at all''' — the property has an x-go-name and nothing else — so there is nothing to decode it as. The DTO ignores the key rather than guessing.

Value parameters

createdAt

when the subscription was recorded

isIgnored

whether the account has explicitly muted it

isSubscribed

whether the account receives notifications for this issue

repositoryUrl

the API URL of the repository the issue is in

url

the API URL of the subscription itself

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product