Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  MessageStoreMock.swift   Sprache: JAVA

 

import Foundation
import PromiseKit
import ThreemaProtocols
@testable import ThreemaFramework

final class MessageStoreMock: MessageStoreProtocol {

    struct SaveGroupTextMessageParam {
        let groupTextMessage: GroupTextMessage
        let senderIdentity: String
        let messageID: Data
        let createdAt: Date
        let reflectedAt: Date
        let isOutgoing: Bool
    }

    var saveGroupTextMessageCalls = [SaveGroupTextMessageParam]()

    struct SaveTextMessageParam {
        let textMessage: BoxTextMessage
        let conversationIdentity: String
        let createdAt: Date
        let reflectedAt: Date
        let isOutgoing: Bool
    }

    var saveTextMessageCalls = [SaveTextMessageParam]()

    func save(
        audioMessage: BoxAudioMessage,
        conversationIdentity: String,
        createdAt: Date,
        reflectedAt: Date
    ) throws {
        // no-op
    }

    func save(
        fileMessage: BoxFileMessage,
        conversationIdentity: String,
        createdAt: Date,
        reflectedAt: Date,
        isOutgoing: Bool,
        timeoutDownloadThumbnail: Int
    ) -> Promise<Void> {
        Promise()
    }

    func save(
        textMessage: BoxTextMessage,
        conversationIdentity: String,
        createdAt: Date,
        reflectedAt: Date,
        isOutgoing: Bool
    ) throws {
        saveTextMessageCalls.append(
            SaveTextMessageParam(
                textMessage: textMessage,
                conversationIdentity: conversationIdentity,
                createdAt: createdAt,
                reflectedAt: reflectedAt,
                isOutgoing: isOutgoing
            )
        )
    }

    func save(contactDeletePhotoMessage amsg: ContactDeletePhotoMessage) {
        // no-op
    }

    func save(contactSetPhotoMessage: ContactSetPhotoMessage) -> Promise<Void> {
        Promise()
    }

    func save(deliveryReceiptMessage: DeliveryReceiptMessage, createdAt: Date, isOutgoing: Bool) throws {
        // no-op
    }

    func save(deleteMessage: ThreemaFramework.DeleteMessage, createdAt: Date, isOutgoing: Bool) throws {
        // no-op
    }

    func save(deleteGroupMessage: ThreemaFramework.DeleteGroupMessage, createdAt: Date, isOutgoing: Bool) throws {
        // no-op
    }

    func save(editMessage: ThreemaFramework.EditMessage, createdAt: Date, isOutgoing: Bool) throws {
        // no-op
    }

    func save(editGroupMessage: ThreemaFramework.EditGroupMessage, createdAt: Date, isOutgoing: Bool) throws {
        // no-op
    }

    func save(
        groupAudioMessage: GroupAudioMessage,
        senderIdentity: String,
        createdAt: Date,
        reflectedAt: Date
    ) throws {
        // no-op
    }

    func save(
        groupCreateMessage amsg: GroupCreateMessage,
        createdAt: Date,
        reflectedAt: Date,
        isOutgoing: Bool
    ) throws -> PromiseKit.Promise<Void> {
        Promise()
    }

    func save(
        groupDeletePhotoMessage amsg: GroupDeletePhotoMessage,
        createdAt: Date,
        reflectedAt: Date,
        isOutgoing: Bool
    ) -> PromiseKit.Promise<Void> {
        Promise()
    }

    func save(groupLeaveMessage amsg: GroupLeaveMessage, createdAt: Date, reflectedAt: Date, isOutgoing: Bool) {
        // no-op
    }

    func save(
        groupRenameMessage amsg: GroupRenameMessage,
        createdAt: Date,
        reflectedAt: Date,
        isOutgoing: Bool
    ) -> PromiseKit.Promise<Void> {
        Promise()
    }

    func save(groupDeliveryReceiptMessage: GroupDeliveryReceiptMessage, createdAt: Date, isOutgoing: Bool) throws {
        // no-op
    }

    func save(
        groupFileMessage: GroupFileMessage,
        senderIdentity: String,
        createdAt: Date,
        reflectedAt: Date,
        isOutgoing: Bool,
        timeoutDownloadThumbnail: Int
    ) -> Promise<Void> {
        Promise()
    }

    func save(
        imageMessage: AbstractMessage,
        senderIdentity: String,
        createdAt: Date,
        reflectedAt: Date,
        maxBytesToDecrypt: Int
    ) throws -> Promise<Void> {
        Promise()
    }

    func save(
        groupLocationMessage: GroupLocationMessage,
        senderIdentity: String,
        createdAt: Date,
        reflectedAt: Date,
        isOutgoing: Bool
    ) throws {
        // no-op
    }

    func save(
        groupBallotCreateMessage: GroupBallotCreateMessage,
        senderIdentity: String,
        createdAt: Date,
        reflectedAt: Date,
        isOutgoing: Bool
    ) throws -> Promise<Void> {
        Promise()
    }

    func save(groupBallotVoteMessage: GroupBallotVoteMessage) throws {
        // no-op
    }

    func save(
        groupSetPhotoMessage amsg: GroupSetPhotoMessage,
        createdAt: Date,
        reflectedAt: Date,
        isOutgoing: Bool
    ) -> PromiseKit.Promise<Void> {
        Promise()
    }

    func save(
        groupTextMessage: GroupTextMessage,
        senderIdentity: String,
        messageID: Data,
        createdAt: Date,
        reflectedAt: Date,
        isOutgoing: Bool
    ) throws {
        saveGroupTextMessageCalls.append(
            SaveGroupTextMessageParam(
                groupTextMessage: groupTextMessage,
                senderIdentity: senderIdentity,
                messageID: messageID,
                createdAt: createdAt,
                reflectedAt: reflectedAt,
                isOutgoing: isOutgoing
            )
        )
    }

    func save(
        videoMessage: AbstractMessage,
        senderIdentity: String,
        createdAt: Date,
        reflectedAt: Date,
        maxBytesToDecrypt: Int
    ) throws -> Promise<Void> {
        Promise()
    }

    func save(
        locationMessage: BoxLocationMessage,
        conversationIdentity: String,
        createdAt: Date,
        reflectedAt: Date,
        isOutgoing: Bool
    ) throws {
        // no-op
    }

    func save(
        ballotCreateMessage: BoxBallotCreateMessage,
        conversationIdentity: String,
        createdAt: Date,
        reflectedAt: Date,
        isOutgoing: Bool
    ) throws -> Promise<Void> {
        Promise()
    }

    func save(ballotVoteMessage: BoxBallotVoteMessage) throws {
        // no-op
    }

    func save(
        groupCallStartMessage: GroupCallStartMessage,
        senderIdentity: String,
        createdAt: Date,
        reflectedAt: Date,
        isOutgoing: Bool
    ) throws -> Promise<Void> {
        Promise()
    }
        
    func save(
        reactionMessage: ReactionMessage,
        conversationIdentity: String,
        createdAt: Date,
        isOutgoing: Bool
    ) throws {
        // no-op
    }
    
    func save(
        groupReactionMessage: GroupReactionMessage,
        senderIdentity: String,
        createdAt: Date,
        isOutgoing: Bool
    ) throws {
        // no-op
    }
}

Messung
CHZG
839210091

¤ Dauer der Verarbeitung: 0.3 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover


Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1104842
#Domains=499168