Skip to content

Commit

Permalink
feat: add FavoriteGroupParams initializer by FavoriteGroup
Browse files Browse the repository at this point in the history
  • Loading branch information
makinosp committed Oct 7, 2024
1 parent aeba93c commit 496ce8c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Sources/VRCKit/Models/Favorite/FavoriteGroupModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,9 @@ public struct FavoriteGroupParams: Sendable {
public let name: String
public let userId: String
}

public extension FavoriteGroupParams {
init(favoriteGroup source: FavoriteGroup) {
self.init(type: source.type, name: source.name, userId: source.ownerId)
}
}

0 comments on commit 496ce8c

Please sign in to comment.