Files
GitHawk/Classes/Issues/StatusEvent/IssueStatusEvent+ButtonState.swift
Ryan Nystrom b489e8db97 Local push notifications (#2145)
* add fmdb

* add local notification cache mechanism

* rewiring to update local db when fetching notifications

* local pushes working

* building for xcode 10
2018-09-22 14:40:35 -04:00

22 lines
478 B
Swift

//
// IssueStatusEvent+ButtonState.swift
// Freetime
//
// Created by Ryan Nystrom on 7/3/17.
// Copyright © 2017 Ryan Nystrom. All rights reserved.
//
import Foundation
extension IssueStatusEvent {
var buttonState: UIButton.IssueState {
switch self {
case .closed: return .closed
case .reopened: return .open
case .merged: return .merged
case .locked: return .locked
case .unlocked: return .unlocked
}
}
}