Skip to content

Commit

Permalink
Merge pull request #72 from AppSci/feature/Analytic
Browse files Browse the repository at this point in the history
Added new parameters for analytic after user send feedback
  • Loading branch information
yehorkyrylov authored Nov 1, 2022
2 parents 0a7a635 + 22903bf commit 475ae0e
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Sources/PandaSDK/Models/PandaPayload.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ public struct PandaPayload {
fromLanguage: String? = nil,
strings: [[String: String]]? = nil,
lessonTitle: String? = nil,
lessonKey: String? = nil,
courseID: String? = nil,
lessonRate: String? = nil,
customId: String? = nil,
email: String? = nil
) {
Expand All @@ -44,10 +47,23 @@ public struct PandaPayload {
if let strings = strings {
data["strings"] = strings
}

if let lessonTitle = lessonTitle {
data["lesson_title"] = lessonTitle
}

if let lessonKey = lessonKey {
data["lesson_key"] = lessonKey
}

if let courseID = courseID {
data["course_id"] = courseID
}

if let lessonRate = lessonRate {
data["lesson_rate"] = lessonRate
}

if let customId = customId {
data["custom_id"] = customId
}
Expand Down

0 comments on commit 475ae0e

Please sign in to comment.