Created
March 10, 2016 10:22
-
-
Save TheDarkCode/4ca0af165c4661538402 to your computer and use it in GitHub Desktop.
Base class for all results that are returned by Azure Search.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// AZResult.swift | |
// azure-search-basics | |
// | |
// Created by Mark Hamilton on 3/10/16. | |
// Copyright © 2016 dryverless. All rights reserved. | |
// | |
import Foundation | |
class AZResult: NSObject { | |
private var _searchScore: Double! | |
private var _id: String! | |
var searchScore: Double { | |
get { | |
return _searchScore | |
} | |
} | |
var id: String { | |
get { | |
return _id | |
} | |
} | |
init(score: Double, id: String) { | |
self._searchScore = score | |
self._id = id | |
} | |
override init() { | |
super.init() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment