damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

ProfileUpdate.swift (402B)


      1 //
      2 //  ProfileUpdate.swift
      3 //  damus
      4 //
      5 //  Created by William Casarin on 2022-05-06.
      6 //
      7 
      8 import Foundation
      9 
     10 
     11 enum ProfileUpdate {
     12     case manual(pubkey: Pubkey, profile: Profile)
     13     case remote(pubkey: Pubkey)
     14 
     15     var pubkey: Pubkey {
     16         switch self {
     17         case .manual(let pubkey, _):
     18             return pubkey
     19         case .remote(let pubkey):
     20             return pubkey
     21         }
     22     }
     23 }