-
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[trello.com/c/PdYjG3m2] Added alt_ip processing
- Loading branch information
“just-software-dev”
committed
Jul 30, 2024
1 parent
3bfaa58
commit 4677722
Showing
51 changed files
with
739 additions
and
405 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// | ||
// NodeWithGroup+NodeWithGroupDTO.swift | ||
// Adamant | ||
// | ||
// Created by Andrew G on 28.07.2024. | ||
// Copyright © 2024 Adamant. All rights reserved. | ||
// | ||
|
||
extension NodeWithGroup { | ||
func mapToDto() -> NodeWithGroupDTO { | ||
.init(group: group, node: node.mapToDto()) | ||
} | ||
} | ||
|
||
extension NodeWithGroupDTO { | ||
func mapToModel() -> NodeWithGroup { | ||
.init(group: group, node: node.mapToModel()) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// | ||
// NodeWithGroupDTO.swift | ||
// Adamant | ||
// | ||
// Created by Andrew G on 28.07.2024. | ||
// Copyright © 2024 Adamant. All rights reserved. | ||
// | ||
|
||
import CommonKit | ||
|
||
struct NodeWithGroupDTO: Codable { | ||
let group: NodeGroup | ||
let node: NodeDTO | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// | ||
// OldNodeWithGroupDTO.swift | ||
// Adamant | ||
// | ||
// Created by Andrew G on 30.07.2024. | ||
// Copyright © 2024 Adamant. All rights reserved. | ||
// | ||
|
||
import CommonKit | ||
|
||
struct OldNodeWithGroupDTO: Codable { | ||
let group: NodeGroup | ||
let node: OldNodeDTO | ||
} | ||
|
||
extension OldNodeWithGroupDTO { | ||
func mapToModernDto() -> NodeWithGroupDTO { | ||
.init(group: group, node: node.mapToModernDto()) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.