Skip to content

Commit

Permalink
refactor: Use frozen struct
Browse files Browse the repository at this point in the history
Signed-off-by: Philippe Weidmann <[email protected]>
  • Loading branch information
PhilippeWeidmann committed Jul 11, 2024
1 parent 5600390 commit e522c8d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion kDriveCore/Data/MQService/IPSToken.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

import Foundation

public class IPSToken: Codable {
@frozen public struct IPSToken: Codable {
let uuid: String
let validUntil: Int
}
2 changes: 1 addition & 1 deletion kDriveCore/Data/Models/Drive/Drive.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import Foundation
import InfomaniakCore
import RealmSwift

public final class DriveResponse: Codable {
@frozen public struct DriveResponse: Codable {
public let drives: [Drive]
public let users: [DriveUser]
public let teams: [Team]
Expand Down
2 changes: 1 addition & 1 deletion kDriveCore/Data/Models/FileAction.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

import Foundation

public struct FileAction: Codable {
@frozen public struct FileAction: Codable {
public let action: FileActivityType
public let fileId: Int
}
2 changes: 1 addition & 1 deletion kDriveCore/Data/Models/ListingResult.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

import Foundation

public struct ListingResult: Codable {
@frozen public struct ListingResult: Codable {
public let actions: [FileAction]
public let files: [File]
public let actionsFiles: [File]
Expand Down

0 comments on commit e522c8d

Please sign in to comment.