This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// DegradedMode.swift | |
// | |
// Created by Maxime Charruel on 25/07/2017. | |
// Copyright © 2017 Maxime Charruel. All rights reserved. | |
// | |
// DegradedMode allow you to sent safely requests and prevent error cases (e.g. timeout, connexion | |
// issues, ...). | |
// When a request failed, it is stored in UserDefault and send back it when user choose to or | |
// automatically when connexion come back |