<commit_before>//
//  AnimeListDayNetworkController.swift
//  AniMee
//
//  Mobilette template version 1.0
//
//  Created by <NAME> on 09/02/16.
//  Copyright © 2016 Mobilette. All rights reserved.
//

import Foundation
import PromiseKit
import ObjectMapper

class AnimeListDayNetworkController: AnimeListDayNetworkProtocol
{
    // MARK: - Property
    
    // MARK: - Life cycle

    // MARK: - Network
    
    func fetchAnimeEpisodesOfSpecificDay(date: NSDate) -> Promise<[AnimeListDayJSONItem]>
    {
        return Promise<[AnimeListDayJSONItem]> { fullfil, reject in
            // Get anime list episode for specific day
        }
    }
    
    // MARK: - Error
    
    enum AnimeListDayNetworkControllerError
    {
        case Mapping(String)
        
        var code: Int {
            switch self {
            case .Mapping:
                return 500<commit_msg>Create day entity. Related to #16.<commit_after>//
//  AnimeListDayNetworkController.swift
//  AniMee
//
//  Mobilette template version 1.0
//
//  Created by <NAME> on 09/02/16.
//  Copyright © 2016 Mobilette. All rights reserved.
//

import Foundation
import PromiseKit
import ObjectMapper

class AnimeListDayNetworkController: AnimeListDayNetworkProtocol
{
    // MARK: - Property
    
    // MARK: - Life cycle

    // MARK: - Network
    
    func fetchAnimeEpisodesOfSpecificDay(date: NSDate) -> Promise<[AnimeListDayJSONItem]>
    {
        return Promise<[AnimeListDayJSONItem]> { fullfil, reject in
            // Implement router
            // Get anime list episode for specific day
        }
    }
    
    // MARK: - Error
    
    enum AnimeListDayNetworkControllerError
    {
        case Mapping(String)
        
        var code: Int {
            switch self {
            case .Mapping:
                return 500
{'fraction_non_alphanumeric': 0.08779679734953065, 'fraction_numerical': 0.0176697956929873, 'mean_word_length': 2.0049751243781095, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4825629', 'n_tokens_mistral': 562, 'n_tokens_neox': 515, 'n_words': 138}