Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Mobile device model #43

Merged
merged 1 commit into from
Jan 4, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions JAMFKit/.swiftlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ included:
- Sources

line_length: 200
function_body_length: 50 # JSS objects can get be pretty big
164 changes: 96 additions & 68 deletions JAMFKit/JAMFKit.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions JAMFKit/Sources/Models/BaseObject.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// Copyright © 2017 JAMFKit. All rights reserved.
//

/// Represents the common denominator between all the JSS objects which must contains at least an `identifier` and a `name` properties.
public class BaseObject: Identifiable, CustomStringConvertible {

// MARK: - Constants
Expand Down
1 change: 1 addition & 0 deletions JAMFKit/Sources/Models/Building.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// Copyright © 2017 JAMFKit. All rights reserved.
//

/// Represents a physical building.
public final class Building: BaseObject {

// MARK: - Properties
Expand Down
21 changes: 0 additions & 21 deletions JAMFKit/Sources/Models/Computer.swift

This file was deleted.

1 change: 1 addition & 0 deletions JAMFKit/Sources/Models/Department.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// Copyright © 2017 JAMFKit. All rights reserved.
//

/// Represents a physical department.
public final class Department: BaseObject {

// MARK: - Properties
Expand Down
41 changes: 0 additions & 41 deletions JAMFKit/Sources/Models/Hardware/Hardware.swift

This file was deleted.

1 change: 1 addition & 0 deletions JAMFKit/Sources/Models/NetbootServer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// Copyright © 2017 JAMFKit. All rights reserved.
//

/// Represents a physical netboot server, contains information about the server and it's configuration.
public final class NetbootServer: BaseObject {

// MARK: - Constants
Expand Down
1 change: 1 addition & 0 deletions JAMFKit/Sources/Models/NetworkSegment.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// Copyright © 2018 JAMFKit. All rights reserved.
//

/// Represents a physical network segment, contains information about the segment and it's configuration.
public final class NetworkSegment: BaseObject {

// MARK: - Constants
Expand Down
1 change: 1 addition & 0 deletions JAMFKit/Sources/Models/PreciseDate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

import Foundation

/// Represents a logical date within JSS api, contains 3 properties, the date itself, an epoch version of the date and an UTC version of the date.
public final class PreciseDate: Identifiable {

// MARK: - Constants
Expand Down
1 change: 1 addition & 0 deletions JAMFKit/Sources/Models/Printer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// Copyright © 2017 JAMFKit. All rights reserved.
//

/// Represents a physical printer, contains information about the printer and it's configuration.
public final class Printer: BaseObject {

// MARK: - Constants
Expand Down
1 change: 1 addition & 0 deletions JAMFKit/Sources/Models/SMTPServer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// Copyright © 2018 JAMFKit. All rights reserved.
//

/// Represents a physical SMTP server, contains information about the server and it's configuration.
public final class SMTPServer: Identifiable, CustomStringConvertible {

// MARK: - Constants
Expand Down
1 change: 1 addition & 0 deletions JAMFKit/Sources/Models/Site.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// Copyright © 2017 JAMFKit. All rights reserved.
//

/// Represents a physical location (building, office, etc.).
public final class Site: BaseObject {

// MARK: - Properties
Expand Down
1 change: 1 addition & 0 deletions JAMFKit/Sources/Models/User.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// Copyright © 2017 JAMFKit. All rights reserved.
//

/// Represents a Jamf user and contains the identification properties that are required to contact the actual user and identify the hardware devices assigned to him / her.
public final class User: BaseObject {

// MARK: - Constants
Expand Down
39 changes: 0 additions & 39 deletions JAMFKit/Tests/Models/Hardware/HardwareTests.swift

This file was deleted.

78 changes: 0 additions & 78 deletions JAMFKit/Tests/Resources/Mocks.bundle/hardware.json

This file was deleted.

This file was deleted.

45 changes: 0 additions & 45 deletions JAMFKit/Tests/Resources/Mocks.bundle/hardware_general_invalid.json

This file was deleted.

46 changes: 0 additions & 46 deletions JAMFKit/Tests/Resources/Mocks.bundle/hardware_general_valid.json

This file was deleted.

Loading