//
//  TweetMessage.swift
//  LoveTweet
//
//  Copyright © 2017 YiGu. All rights reserved.
//

import Foundation

struct Tweet {
  var gender: Gender
  var name: String
    var age: Int = 0{
        willSet{
            if newValue > 30{
                
                
            }
        }
    }
  var work: String
  var salary: String
  var isStraight: Bool
  
  var interestedGender: String {
    switch gender {
    case .Female:
      return isStraight ? "Men" : "Women"
    case .Male:
      return isStraight ? "Women" : "Men"
    }
  }
  
  var info: String {
    return "Hi, I am \(name). As a \(age)-year-old \(work) earning \(salary)/year, I am interested in \(interestedGender). Feel free to contact me!"
  }
}
