forked from parse-community/Parse-Swift
-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add a type for decoding Hook Triggers without Objects (#53)
* feat: Add a type for decoding Hook Triggers without Objects * add getters to new type * nits * add changelog
- Loading branch information
Showing
11 changed files
with
319 additions
and
137 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
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
23 changes: 23 additions & 0 deletions
23
Sources/ParseSwift/Protocols/ParseHookTriggerRequestable.swift
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,23 @@ | ||
// | ||
// ParseHookTriggerRequestable.swift | ||
// ParseSwift | ||
// | ||
// Created by Corey Baker on 1/24/23. | ||
// Copyright © 2023 Network Reconnaissance Lab. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
/** | ||
Conforming to `ParseHookTriggerRequestable` allows you to create types that | ||
can decode requests when `ParseHookTriggerable` triggers are called. | ||
- requires: `.usePrimaryKey` has to be available. It is recommended to only | ||
use the master key in server-side applications where the key is kept secure and not | ||
exposed to the public. | ||
*/ | ||
public protocol ParseHookTriggerRequestable: ParseHookRequestable { | ||
/// The types of Parse Hook Trigger. | ||
var triggerName: String? { get } | ||
/// The number of clients connected. | ||
var clients: Int? { get } | ||
} |
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 |
---|---|---|
|
@@ -67,4 +67,5 @@ extension ParseHookFunctionRequest { | |
} | ||
return context | ||
} | ||
|
||
} |
Oops, something went wrong.