36 lines
1.2 KiB
Swift
36 lines
1.2 KiB
Swift
//
|
|
// Constants.swift
|
|
// ipbc-Client
|
|
//
|
|
// Created by Gerrit Linnemann on 09.09.15.
|
|
// Copyright (c) 2015 Adawim UG (haftungsbeschränkt). All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
struct Constants {
|
|
struct Web {
|
|
static let REGISTER = "https://www.ip-bc.org/login.xhtml"
|
|
}
|
|
|
|
struct WebService {
|
|
static let BASE = "www.ip-bc.org"
|
|
static let UPDATE = "https://ip-bc.org/ws/update/ip" //"http://localhost:8080/ip-bc.org/ws/update/dyndns"
|
|
static let GET_USERS_IP = "https://www.ip-bc.org/ws/info/ip" //"http://localhost:8080/ip-bc.org/ws/info/ip"
|
|
static let GET_MASTER_DOMAINS = "https://app.ip-bc.org/domains"
|
|
}
|
|
|
|
struct UserDefaults {
|
|
static let HOST = "USERDEFAULT_HOST"
|
|
static let TOKEN = "USERDEFAULT_TOKEN"
|
|
|
|
static let PERSIST_LAST_USERS_IP = "USERDEFAULT_PERSIST_LAST_USERS_IP"
|
|
}
|
|
|
|
struct Notification {
|
|
static let NF_NETWORK_AVAILABLE = "NOTIFICATION_NETWORK_AVAILABLE"
|
|
static let NF_NETWORK_NOT_AVAILABLE = "NOTIFICATION_NETWORK_NOT_AVAILABLE"
|
|
static let NF_IP_HAS_CHANGED = "NOTIFICATION_IP_HAS_CHANGED"
|
|
static let NF_DATA_USERDATA_HAS_CHANGED = "NOTIFICATION_DATA_USERDATA_HAS_CHANGED"
|
|
}
|
|
} |