mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2025-07-22 12:13:35 +00:00
32 lines
515 B
Objective-C
32 lines
515 B
Objective-C
//
|
|
// Computer.m
|
|
// Limelight
|
|
//
|
|
// Created by Diego Waxemberg on 10/14/14.
|
|
// Copyright (c) 2014 Limelight Stream. All rights reserved.
|
|
//
|
|
|
|
#import "Computer.h"
|
|
|
|
@implementation Computer
|
|
|
|
- (id) initWithHost:(NSNetService *)host {
|
|
self = [super init];
|
|
|
|
self.hostName = [host hostName];
|
|
self.displayName = [host name];
|
|
|
|
return self;
|
|
}
|
|
|
|
- (id) initWithIp:(NSString*)host {
|
|
self = [super init];
|
|
|
|
self.hostName = host;
|
|
self.displayName = host;
|
|
|
|
return self;
|
|
}
|
|
|
|
@end
|