All pastes #284421 Raw Edit

Someone

public text v1 · immutable
#284421 ·published 2006-12-19 01:59 UTC
rendered paste body
//
//  CurrencyConverterModel.m
//  CurrencyConverter
//
//  Created by sapere on 12/16/06.
//  Copyright 2006 sapere. All rights reserved.
//

#import "CurrencyConverterModel.h"


@implementation CurrencyConverterModel

- (id) init {
    NSLog(@"Calling CurrencyConverterModel's init");
    [super init];
    amountToConvert = 0.0;
    exchangeRate = 0.0;
    convertedValue = 0.0;
    return self;
}

- (float) exchangeRate {
    return exchangeRate;
}

- (void) setExchangeRate: (float) rate {
    NSLog(@"Setting exchange rate to: %d", rate);
    exchangeRate = rate;
}

- (float) amountToConvert {
    return amountToConvert;
}

- (void) setAmountToConvert: (float) amount {
    NSLog(@"Setting amount to convert to: %d", amount);
    amountToConvert = amount;
}

- (float) convertedValue {
    return convertedValue;
}

- (void) setConvertedValue: (float) value {
    NSLog(@"Setting converted value to: %d", value);
    convertedValue = value;
}

@end