Skip to content

Commit

Permalink
Add forgotten file
Browse files Browse the repository at this point in the history
  • Loading branch information
graeme committed Dec 19, 2024
1 parent 0d487b3 commit 3922e7c
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions DuckDuckGo/Sync/SyncPixels.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
//
// SyncPixels.swift
//
// Copyright © 2024 DuckDuckGo. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//

import PixelKit

enum SyncSwitchAccountPixelKitEvent: PixelKitEventV2 {
case syncAskUserToSwitchAccount
case syncUserAcceptedSwitchingAccount
case syncUserCancelledSwitchingAccount
case syncUserSwitchedAccount
case syncUserSwitchedLogoutError
case syncUserSwitchedLoginError

var name: String {
switch self {
case .syncAskUserToSwitchAccount: return "sync_ask_user_to_switch_account"
case .syncUserAcceptedSwitchingAccount: return "sync_user_accepted_switching_account"
case .syncUserCancelledSwitchingAccount: return "sync_user_cancelled_switching_account"
case .syncUserSwitchedAccount: return "sync_user_switched_account"
case .syncUserSwitchedLogoutError: return "sync_user_switched_logout_error"
case .syncUserSwitchedLoginError: return "sync_user_switched_login_error"
}
}

var parameters: [String: String]? {
nil
}

var error: (any Error)? {
nil
}

var withoutMacPrefix: NonStandardEvent {
NonStandardEvent(self)
}
}

0 comments on commit 3922e7c

Please sign in to comment.