IOSAD-99 bye bye outgoingRatingForMessageDict
authorDirk Zimmermann <dirk@pep-project.org>
Mon, 10 Sep 2018 12:06:49 +0200
changeset 650b538f525eca5
parent 649 090fa902a419
child 651 6cf8ea7465b0
IOSAD-99 bye bye outgoingRatingForMessageDict
pEpObjCAdapter/PEPInternalSession.m
pEpObjCAdapter/PEPSession.m
pEpObjCAdapter/PEPSessionProtocol.h
     1.1 --- a/pEpObjCAdapter/PEPInternalSession.m	Mon Sep 10 12:06:49 2018 +0200
     1.2 +++ b/pEpObjCAdapter/PEPInternalSession.m	Mon Sep 10 12:06:49 2018 +0200
     1.3 @@ -472,10 +472,10 @@
     1.4      }
     1.5  }
     1.6  
     1.7 -- (NSNumber * _Nullable)outgoingRatingForMessageDict:(PEPDict * _Nonnull)messageDict
     1.8 -                                               error:(NSError * _Nullable * _Nullable)error
     1.9 +- (NSNumber * _Nullable)outgoingRatingForMessage:(PEPMessage * _Nonnull)theMessage
    1.10 +                                           error:(NSError * _Nullable * _Nullable)error
    1.11  {
    1.12 -    message *_msg = PEP_messageDictToStruct(messageDict);
    1.13 +    message *_msg = PEP_messageToStruct(theMessage);
    1.14      PEP_rating rating = PEP_rating_undefined;
    1.15  
    1.16      [self lockWrite];
    1.17 @@ -491,12 +491,6 @@
    1.18      return [NSNumber numberWithPEPRating:rating];
    1.19  }
    1.20  
    1.21 -- (NSNumber * _Nullable)outgoingRatingForMessage:(PEPMessage * _Nonnull)message
    1.22 -                                           error:(NSError * _Nullable * _Nullable)error
    1.23 -{
    1.24 -    return [self outgoingRatingForMessageDict:(NSDictionary *) message error:error];
    1.25 -}
    1.26 -
    1.27  - (NSNumber * _Nullable)ratingForIdentity:(PEPIdentity * _Nonnull)identity
    1.28                                      error:(NSError * _Nullable * _Nullable)error
    1.29  {
     2.1 --- a/pEpObjCAdapter/PEPSession.m	Mon Sep 10 12:06:49 2018 +0200
     2.2 +++ b/pEpObjCAdapter/PEPSession.m	Mon Sep 10 12:06:49 2018 +0200
     2.3 @@ -186,11 +186,11 @@
     2.4              error:error];
     2.5  }
     2.6  
     2.7 -- (NSNumber * _Nullable)outgoingRatingForMessage:(PEPMessage * _Nonnull)message
     2.8 +- (NSNumber * _Nullable)outgoingRatingForMessage:(PEPMessage * _Nonnull)theMessage
     2.9                                             error:(NSError * _Nullable * _Nullable)error
    2.10  {
    2.11      PEPInternalSession *session = [PEPSessionProvider session];
    2.12 -    return [session outgoingRatingForMessage:message error:error];
    2.13 +    return [session outgoingRatingForMessage:theMessage error:error];
    2.14  }
    2.15  
    2.16  - (NSNumber * _Nullable)ratingForIdentity:(PEPIdentity * _Nonnull)identity
     3.1 --- a/pEpObjCAdapter/PEPSessionProtocol.h	Mon Sep 10 12:06:49 2018 +0200
     3.2 +++ b/pEpObjCAdapter/PEPSessionProtocol.h	Mon Sep 10 12:06:49 2018 +0200
     3.3 @@ -107,7 +107,7 @@
     3.4                                     error:(NSError * _Nullable * _Nullable)error;
     3.5  
     3.6  /** Determine the status color of a message to be sent */
     3.7 -- (NSNumber * _Nullable)outgoingRatingForMessage:(PEPMessage * _Nonnull)message
     3.8 +- (NSNumber * _Nullable)outgoingRatingForMessage:(PEPMessage * _Nonnull)theMessage
     3.9                                             error:(NSError * _Nullable * _Nullable)error;
    3.10  
    3.11  /**